Automate

 View Only
  • 1.  S/4 Hana Business Partner BP -Validierung

    Posted 05-14-2024 09:13

    Hello to the community,

    maybe someone here can help me and knows this problem.
    When running the validation, it uploads this data and saves it immediately. do any of you know this problem?
    it's about changing business partner tn: bub2.
    Best Regards
    Matthias Herbicht



    ------------------------------
    Matthias Herbicht
    sap. support
    Serviceplan Group SE & Co. KG
    ------------------------------


  • 2.  RE: S/4 Hana Business Partner BP -Validierung

    Employee
    Posted 05-14-2024 19:46

    Hi Matthias

    Validate tends to work best when the save/post is at the end, separate from any upload fields.  We call that isolating the save/post.

    Is that the case with your script?  You didn't share it, so I can only speculate.  

    Also BP tends to have multiple save points, so I suggest breaking it up by role.

    Best Regards,

    Sigrid



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



  • 3.  RE: S/4 Hana Business Partner BP -Validierung

    Posted 05-15-2024 04:33

    Hi Sigrid, 
    thanks for the fast feedback. 

    Sorry for the questions, but I only have made a handful script. how we can i make the isolation of saving?

    At the attachment my script. 

    Best Regards

    Matthias



    ------------------------------
    Matthias Herbicht
    sap. support
    Serviceplan Group SE & Co. KG
    ------------------------------



  • 4.  RE: S/4 Hana Business Partner BP -Validierung

    Employee
    Posted 05-15-2024 11:25

    Hi Matthias

    It's ok.  BP is a best of a tcode to automate, even with lots of experience.

    Can you please attach a copy of your script?  The excel file is optional, but if you do share it, please remove any sensitive information.

    Best Regards,

    Sigrid



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



  • 5.  RE: S/4 Hana Business Partner BP -Validierung

    Posted 05-16-2024 07:22

    Hello Sigrid, 
    at the attachment you will see the script. 

    Best Regards 
    Matthias



    ------------------------------
    Matthias Herbicht
    sap. support
    Serviceplan Group SE & Co. KG
    ------------------------------



  • 6.  RE: S/4 Hana Business Partner BP -Validierung

    Employee
    Posted 05-16-2024 18:42

    Hi Matthias

    Thanks for sharing the script and template.  Please note the platform has an issue with some of the special characters (to us Americas).  It downloaded the script as a zip file with some text files in it

    I had to rename the zip file to .TXR and we were good. :)

    I haven't used BUB2 for relationships, but here is what I'm seeing at the end

    on Line 33 you are doing a save

    then save again on 36?

    then cancel from where?

    then /EE is likely exit?

    Validate will skip the last OK code - so you have what looks like two saves and a cancel prior to the /EE ok code, which is why it's posting.

    Do you need those extra steps or can you exit as you save in line 33?  If not, then unfortunately I would disable validation on this script.

    Best Regards,

    Sigrid



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



  • 7.  RE: S/4 Hana Business Partner BP -Validierung

    Employee
    Posted 05-16-2024 19:19

    PS:  Please see prior reply on why this is happening. Another option would be to create a script that does not save at the end.  You can use it as a "validation" script.   So two scripts - 1 to validate and 1 to post.  Just a thought.



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