Automate

 View Only
  • 1.  ME21N - Create Purchase Order with Header Note

    Posted 07-30-2021 13:30
    I tried to create the Script for ME21N - Create Purchase Order with Header Note but the script is not recognizing or recording this Header Note Selection . It  is always defaulting to the first in the list i.e.Header text.Please advise how to fix this.Thanks.
    Vas.

    ------------------------------
    Vasudevarao Cherukuru | ERP Configuration Specialist
    Day & Zimmermann, Inc. | 215-299-8059
    ------------------------------


  • 2.  RE: ME21N - Create Purchase Order with Header Note

    Posted 07-30-2021 14:40
    Hi Vasu - 

    If you are trying to add the header note during the PO creation, with those particular types of long texts, even if you record the "correct" long text yourself, it is still only going to select the first one or the long text that already has data in it (default text, etc). Selecting the right long text in that transaction is not easy in standard recording modes.

    It will be much easier to do a follow-up ME22N or even ME23N (can link the ME21N and second script also) and add the header note as a secondary step, and use the built-in Studio long text functionality. In an ME22N, once recorded, you don't even have to save, you can just exit after entering the PO number, you can use the "Add Long Text" button in the mapper to select the header text you want to add. It will show additional fields in the mapper related to the long text and then you will make the required mappings. 



    You will need to be on Studio 11 or 12 for this. 

    Thanks!

    ------------------------------
    Jennifer Hwang | SE
    Winshuttle North America
    ------------------------------



  • 3.  RE: ME21N - Create Purchase Order with Header Note

    Posted 07-30-2021 15:07
    Hi Jennifer,
    Thank you for the detailed explanation. However, Header Note is mandatory and hence I cannot save Purchase Order without this text.Hence we need a solution to record ME21N with correct Header Note. 
    Thanks!
    Vasu.


    ------------------------------
    Vasudevarao Cherukuru | ERP Configuration Specialist
    Day & Zimmermann, Inc. | 215-299-8059
    ------------------------------



  • 4.  RE: ME21N - Create Purchase Order with Header Note

    Posted 07-30-2021 15:45
    Hi Vasu -

    Does it let you create the document with a Hold without the Header Note?  If so, then you can record the ME21N with a hold at the end, and then run the ME22N to add the Header Note and do a real Save.

    If that is not allowed then your only option is to record in Gui Scripting recording mode so that the Header Note long text can actually be selected during the recording. You could also attempt to create the PO with a BAPI, if that allows you to create without the Header Note, and then do an ME22N to add the Header Note.

    Thanks

    ------------------------------
    Jennifer Hwang | SE
    Winshuttle North America
    ------------------------------



  • 5.  RE: ME21N - Create Purchase Order with Header Note

    Posted 07-30-2021 16:03
    Noted, Thank you.
    Regards,
    Vasu.

    ------------------------------
    Vasudevarao Cherukuru | ERP Configuration Specialist
    Day & Zimmermann, Inc. | 215-299-8059
    ------------------------------