Automate

 View Only
  • 1.  Useful list of BAPI for Material Creation/Update and BP Creation/Update via Winshuttle?

    Posted 06-17-2024 00:00

    Hi,

    I am learning how to use BAPI via Winshuttle. Could you please advise which BAPI are useful for Material Creation/Update and BP Creation/Update?

    Normal/GUI most used script that I have:

    1.Material creation/update (MM01, MM02)

    2.BP creation (customer,supplier,contact person) (BP)

    3.Update Customer Text (BP)

    4.Create Sales List Price Condition ZP01/ZP02 (VK11, VK12)

    5.Contract creation/update (ME31K, ME32K)

    6.Material Determination (VB11, VB12) 

    7.Customer Material Info Records (VD51, VD52)

    8.Purchase Info Records (ME11, ME12)



    ------------------------------
    Best Regards,
    Nart
    ------------------------------


  • 2.  RE: Useful list of BAPI for Material Creation/Update and BP Creation/Update via Winshuttle?

    Employee
    Posted 06-17-2024 08:54

    For Material Creation, Updates and Extensions, the best one is BAPI_MATERIAL_SAVEDATA

    There is an example in the Template library to add units of measure - https://community.precisely.com/viewdocument/add-or-update-alternate-units-of-me?CommunityKey=e1f0c200-ca7e-46e7-b5c7-01855e5120c7&tab=librarydocuments

    Business Partner BAPIs usually start with BAPI_BUPA* ...Below is a snapshot from SE37 search. 



    ------------------------------
    Jayasri Varyani
    SE
    Precisely Software Inc.
    ------------------------------



  • 3.  RE: Useful list of BAPI for Material Creation/Update and BP Creation/Update via Winshuttle?

    Employee
    Posted 06-17-2024 09:06

    If you have not already seen these training videos, I highly recommend spending some time learning about DIRECT here: https://preciselyu.precisely.com/studio-do-more-with-studio-sap-with-bapis



    ------------------------------
    Jayasri Varyani
    SE
    Precisely Software Inc.
    ------------------------------



  • 4.  RE: Useful list of BAPI for Material Creation/Update and BP Creation/Update via Winshuttle?

    Posted 06-19-2024 02:36

    Hi Jayasri,

    Thank you. I have gone through these, but they are pretty outdated (2021). Is there a more up-to-date guide?



    ------------------------------
    Best Regards,
    Nart
    ------------------------------



  • 5.  RE: Useful list of BAPI for Material Creation/Update and BP Creation/Update via Winshuttle?

    Employee
    Posted 06-20-2024 18:27

    Hi Nart

    I'm fond of saying BAPIs are older than dirt, which is an overstatement, but they have been around a very long time and don't really change much.

    The recording Jayasri shared is still very relevant.

    From your list:

    1.Material creation/update (MM01, MM02) - Jayasri shared BAPI_MATERIAL_SAVEDATA, which is correct.  You can recreate and extend materials with it, and it works in both ECC and S4.

    2.BP creation (customer,supplier,contact person) (BP) - in S4 there are not many BAPIs.  The ones with BUPA, as Jayasri pointed out.  You can also search for some threads on the community where I talk about the rFM RFC_CVI_EI_INBOUND_MAIN, which was part of the migration cockpit, to create BPs.

    3.Update Customer Text (BP) - We've already had a thread on this topic.

    4.Create Sales List Price Condition ZP01/ZP02 (VK11, VK12) - VK11 and VK12 are recordable, so I haven't looked for a BAPI for this one.  I typically do a Google search to find them.

    5.Contract creation/update (ME31K, ME32K) - BAPI_CONTRACT_CREATE will create purchasing contracts. There is also BAPI_CONTRACT_CHANGE and BAPI_CONTRACT_GETDETAIL.

    6.Material Determination (VB11, VB12)  - ditto to #4

    7.Customer Material Info Records (VD51, VD52) - ditto to #4.

    8.Purchase Info Records (ME11, ME12) - I haven't found one for this.

    Hope that fills some of the gaps.  If you find good BAPIs/rFMs for some of the above, please share with the community. :)

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------



  • 6.  RE: Useful list of BAPI for Material Creation/Update and BP Creation/Update via Winshuttle?

    Posted 07-18-2024 00:57

    Hi Sigrid, thank you :)

    Regarding on point 1. Could you please advise what's the different between the value in 'BAPI name'?

    I see that there are 2 list for BAPI_MATERIAL_SAVEDATA with the 'BAPI name' of NfmStandardMaterial and StandardMaterial.

    1.

    2.



    ------------------------------
    Best Regards,
    Nart
    ------------------------------



  • 7.  RE: Useful list of BAPI for Material Creation/Update and BP Creation/Update via Winshuttle?

    Employee
    Posted 07-19-2024 14:27

    Hi Nart

    In S4, there are the two versions.  In S4 there are two versions, and I thought the NF version was for the non-ferrous metal materials (https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/non-ferrous-nf-metals-processing/ba-p/13289811), but it looks like both versions are the same.

    I've always used StandardMaterial.

    If anyone else has insights, please share.

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    Precisely Software Inc.
    ------------------------------