09-02-2015 7:35 AM
Dear Experts,
How can I get Item quantity (MENGE) in this exit. I have to apply some calculations. I have checked SCN but not found any solution.
How can I do this.?
Regards,
Aneel
09-02-2015 8:09 AM
Dear Aneel,
Try to explore for alternative user exits or BADI where you can apply your calculations. If at all there is no suitable exit/BADI then the only option is to use the below syntax to get the item quantity.
field-symbols <fs> type any table.
DATA: gv_name(30).
CLEAR gv_name.
MOVE '(<Program Name>)<Internal table name>' TO gv_name.
ASSIGN (gv_name) TO <fs>.
In your case most likely <program name> should be MM06EF0C and internal table name should be EKPO[].
If the function call is not from the above program name then replace the program name with the correct program.
Regards,
SaiRam
09-02-2015 8:18 AM
Hi Aneel,
Try like this
FIELD-SYMBOLS <fs> TYPE ANY.
ASSIGN ('(SAPLMEPO)EKPO') TO <fs>.
IF <fs> IS ASSIGNED.
................... write your code.
ENDIF.
09-02-2015 8:28 AM
Hi Aneel,
Check the values in structure ekpo in debugging mode.
Thanks
09-02-2015 8:45 AM
First, in EXIT_SAPMM06E_017 "PBO FM", memorize received data (I_EKKO, I_EKPO) in global data of exit FG (ZXM06TOP)
Then, in EXIT_SAPMM06E_018 "PAI FM", use those data
Hint: The first FM will be called twice by SAP standard, before PBO of customer screen AND before PAI of customer screen, so data will be up-to-date to perform check between standard and customer data.
Regards,
Raymond
09-02-2015 2:06 PM