Skip to Content

Extract purchase order line text from memory in transaction ME21N.

In the procedure of creating purchase order with transaction ME21Ni useEXIT_SAPMM06E_013 to extract data required for interface with another application. Among required data is alsotext from purchase order line. This text it not exist in table »stxl« in moment of creation PO, therefore it is needed to get it from memory. I try to find this text in internal table »XTHEAD« or use 'IMPORT catalog FROM MEMORY ID' statement (Probably, I do not find corect memory id).

Can anyone tel me the right steps to get purchase line text?

Thanks in advance.

MarkoCernivc

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 27, 2017 at 10:15 AM

    Hi Marko,

    Cannot you use the BAdI ME_PROCESS_PO_CUST ?

    In method POST you got in input object IM_HEADER with method IF_LONGTEXTS_MM~GET_TEXT

    You can choose to move here all your logic (my suggestion) or just read the text and export to a memory id you create and then read it in EXIT_SAPMM06E_013 (if i remember well the Customer Function you are using is triggered after the BAdI) .

    If i was you, i'd evaluate the chance to move into the BAdI.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 29, 2017 at 10:39 AM

    Thank you for the advice. I will do some more attempts of extraction of purchase order line text on the way I described. If I will not be succeeded I will do according your advice.

    Regards,

    Marko Cernivc

    Add comment
    10|10000 characters needed characters exceeded