2012 Sep 05 5:58 PM
Dear Experts,
The requirement is to check in an output control requirement(VOFM) if the delivery address is different than the one that system propose it(plant address).
I have access to the PO items details, but the problem is that the field ADRNR is available just after the PO save, which is too late. Can you please suggest how to identify if the delivery address was changed at this stage? Bellow you can find a sample code from my requirement routine.
FORM kobed_903.
DATA: ls_bekpo TYPE bekpo,
lt_bekpo TYPE TABLE OF bekpo,
lv_text TYPE char40.
FIELD-SYMBOLS: <itab> TYPE mmpur_bekpo.
CHECK komkbea-bsart = 'ZNB'.
lv_text = '(SAPLMEPO)POT[]'.
ASSIGN (lv_text) TO <itab>.
ENDFORM. "KOBED_903
Thanks and BR,
Cristian
2012 Sep 06 8:16 AM
Hi
See SAP Note 39462 - Expand field catalog in message determination for purchasing. It explains how to enhance the field catalog.
I hope this helps you
Regards
Eduardo
2012 Sep 06 10:05 AM
Hi Eduardo,
I still have the same problem, in the FORM_USEREXIT_KOMKBEA_FILL I don't have access to the new item delivery address ... I need a way to fetch this data - That's the real challenge. The note provided by you can be avoided by using field-symbols(see my code).
Thanks for your hint,
Cristian
2012 Sep 06 3:13 PM
Hi Cristian,
Perhaps I understood your problem.
First, the output message is for header, and you are talking me about information in items. So, with this kind of tools perhaps you couldn't do it. I remember I had a similar issue but with MM invoicing (related with info in items and I needed to manage the output with a requirement), ie. appl. MR. Possible solution: search a suitable enhancement or BADI in the PO and do in this site an EXPORT TO MEMORY ID 'ZDEMO' WITH.... . After in your requirement, but in FORM KOBEV_XXX do the IMPORT FROM MEMORY ID 'ZDEMO'. Set the proper filters before the EXPORT.
I hope this helps you
Regards
Eduardo