Automate

 View Only
  • 1.  BAPI_PO_GETDETAIL

    Posted 09-01-2022 13:41

    Hi Friends,

    I'm trying to pull line item specific text out of POs (ME23N) using BAPI_PO_GETDETAIL. I seem to be getting mostly accurate data, however if you review the attached template, it doesn't appear to be indexing properly, and doesn't always pull item text. There is an example where the text pulled is 'Material PO Text' and NOT 'Item Text'. Any thoughts on how to get this to index correctly? 

    I have tried all other recording methods and have found that BAPI is the best option. 

    Thank you,

    Vanessa



    ------------------------------
    Vanessa Kutasi | Application Analyst II
    IDEXX | New England WUG Leader
    ------------------------------

    Attachment(s)

    Txr
    Get_PO_Item_Text.Txr   499 KB 1 version


  • 2.  RE: BAPI_PO_GETDETAIL

    Employee
    Posted 09-26-2022 11:41
    Hi Vanessa, 
    Thank you for providing detailed explanation in your output file. It is definitely weird why it would not match what is in SAP. 

    Few thoughts at a glance: 
    1) I don't know the details of why the textID = F01. Could you double check this choice?

    2) If you run the same data set in SE37, is the SAP result the same (PO text instead of Item Text?) ?
    If so, it could be a bug in the BAPI and should be addressed by SAP Support. 
    If SE37 results are correct, and the script is not returning this output, then I recommend you create a Winshuttle/Precisely support ticket so they can debug on our end and see what might be causing the output to be off. 

    Hope that makes sense
    Jayasri

    ------------------------------
    Jayasri Varyani | SE
    Winshuttle North America |
    ------------------------------



  • 3.  RE: BAPI_PO_GETDETAIL

    Posted 09-27-2022 08:56
    Hi Jayasri,
    1) I don't know the details of why the textID = F01. Could you double check this choice?
                   VK - When I execute in SE37, F01 contains the details I am looking to extract. 

    2) If you run the same data set in SE37, is the SAP result the same (PO text instead of Item Text?) ?
             VK - SE37 appears to bring in all the texts, not just F01 no matter what criteria I select for the output. 

    VK - I will reach out to my internal SAP team for further assistance. If needed, I will submit a ticket with support. Thank you for your assistance!





    ------------------------------
    Vanessa Kutasi | Application Analyst II
    IDEXX | New England WUG Leader
    ------------------------------



  • 4.  RE: BAPI_PO_GETDETAIL

    Posted 12-08-2022 09:56
    Hey Everyone,
    I thought i'd follow up on the outcome of this one. We ended up successfully retrieving accurate data using RFC_READ_TEXT rather than the BAPI. Also, we needed to make the language an input as POs are created across the globe, so the script needs to know which language to read from. Defaulting EN wasn't an option as it is in many other situations as each user has their own default SAP language. I have uploaded a copy in case it's useful for others.

    ------------------------------
    Vanessa Kutasi | Application Analyst II
    IDEXX | New England WUG Leader
    ------------------------------

    Attachment(s)

    Txr
    Read PO Item Text.Txr   46 KB 1 version
    xlsx
    Read PO Item Text.xlsx   12 KB 1 version