Search found 1865 matches

by Gothmog
Wed Dec 07, 2016 10:33 am
Forum: ABAP
Topic: SQ01/Infoset Query suppress zeros
Replies: 7
Views: 4520

Re: SQ01/Infoset Query suppress zeros

Oh... You're using a logical database, I see.
You could put your code in the GET event of the appropriate node, and use the REJECT [node] instruction to filter out the line.
by Gothmog
Wed Dec 07, 2016 8:09 am
Forum: ABAP
Topic: SQ01/Infoset Query suppress zeros
Replies: 7
Views: 4520

Re: SQ01/Infoset Query suppress zeros

In the infoset, in the Extras, in tab Code, add a code section 5 (Record Processing), and check the quantities are not zero.
For example:

Code: Select all

CHECK quantity1 <> 0 OR quantity2 <> 0.
by Gothmog
Mon Dec 05, 2016 10:13 am
Forum: ABAP
Topic: Reporting Deliveries with Batch split
Replies: 5
Views: 2652

Re: Reporting Deliveries with Batch split

"Total length must be 25" => means your batch numbers are 7 characters long, I guess.
Either use

Code: Select all

CONCATENATE matnr charg INTO objek RESPECTING BLANKS.
or

Code: Select all

objek(18) = matnr.
objek+18 = charg.
by Gothmog
Mon Dec 05, 2016 5:30 am
Forum: ABAP
Topic: Reporting Deliveries with Batch split
Replies: 5
Views: 2652

Re: Reporting Deliveries with Batch split

You're looking for entries in INOB for batches ? Depend on if the batch is cross-plant (table MCH1), plant-specific (MCHA), etc... The field OBJEK will be the key of the batch table (disregarding field MANDT). For table MCHA, the material number is on the 18 first characters of INOB-OBJEK, followed ...
by Gothmog
Mon Oct 17, 2016 4:26 am
Forum: ABAP
Topic: Making a field mandatory based on sales area
Replies: 1
Views: 2108

Re: Making a field mandatory based on sales area

You could check it in exit EXIT_SAPMF02D_001, and send an error message if it's empty when working on this sales area.
by Gothmog
Tue Sep 20, 2016 9:36 am
Forum: Logistics MM
Topic: How to identify is only classification data changed in MM02
Replies: 6
Views: 2691

Re: How to identify is only classification data changed in MM02

Parameters WMARA and CMARA both hold the current values of MARA (in different structures, one being modifiable). The material descriptions would be in table STEXT. I don't think you get to know if it's been modified in this exit - it's intended to check the material data if it's been potentially cha...
by Gothmog
Tue Sep 20, 2016 5:19 am
Forum: Logistics MM
Topic: How to identify is only classification data changed in MM02
Replies: 6
Views: 2691

Re: How to identify is only classification data changed in MM02

I'm afraid you don't have access to the previous values of mara in this exit, only the current values.
You'd have to play with field symbols to get this in the calling program if you really want to do this here.
by Gothmog
Tue Sep 20, 2016 3:35 am
Forum: Logistics MM
Topic: How to identify is only classification data changed in MM02
Replies: 6
Views: 2691

Re: How to identify is only classification data changed in MM02

It could help to know where (exit ? enhancement ?) you're doing this check.
You could try to compare MARA (current basic data) and *MARA (previous basic data).
by Gothmog
Thu Jul 07, 2016 4:13 am
Forum: Suggestions/Feedback/Errors
Topic: Can't find my recent posts
Replies: 2
Views: 3775

Re: Can't find my recent posts

I also had some serious problems accessing SAPfans recently, and it seems we lost a few weeks of posts.
Maybe an admin could give more details on what exactly happended.
by Gothmog
Wed Feb 17, 2016 4:17 am
Forum: ABAP
Topic: Download data in CA51
Replies: 2
Views: 2075

Re: Download data in CA51

Considering this report does not store data in a convenient internal table, you'd have to copy it (well, you could heavily modify it...) and put some code in nearly every GET event to fill this table.
Add an END-OF-SELECTION event to create your file.
by Gothmog
Wed Feb 03, 2016 4:46 am
Forum: ABAP
Topic: Shared Objects Wrapper
Replies: 3
Views: 2981

Re: Shared Objects Wrapper

I don't think there's a common superclass or interface to the various OB_ROOT classes - you'll have to be very generic in the method parameter definition (TYPE REF TO OBJECT) to return the reference.
What typing problems are you encountering exactly?
by Gothmog
Wed Jan 13, 2016 11:57 am
Forum: ABAP
Topic: View the code in a method for an interface.
Replies: 1
Views: 1746

Re: View the code in a method for an interface.

The method in the interface has no code, only a definition (level, parameters...) - the implementing classes have the code. In SE18 : menu Implementation/Overview, select the implementation that you want to view (or do it in SE19). In this BAdI implementation, you can see the code (of the method in ...
by Gothmog
Wed Jan 13, 2016 4:26 am
Forum: Logistics MM
Topic: Cannot change the PO price because of PIR
Replies: 1
Views: 1918

Re: Cannot change the PO price because of PIR

Exits and badis, maybe - an implementation of ME_PROCESS_PO_CUST could be the culprit.
by Gothmog
Fri Jan 08, 2016 5:47 am
Forum: CRM :: SAP CRM
Topic: Line 'entity ?= current' is failing [RESOLVED]
Replies: 2
Views: 9519

Re: Line 'entity ?= current' is failing

Well, the casting will fail if current is not a ref to cl_crm_bol_entity (or one of its sub-classes).
What is current's actual type ?
by Gothmog
Mon Nov 30, 2015 5:40 am
Forum: ABAP
Topic: Internal tables in abap classes
Replies: 1
Views: 1480

Re: Internal tables in abap classes

Is the data used only within each method? If yes, local data.
However, the table type can be defined in the class, and used in both method.