Some BAPIs let you pick the fields you maintain in a separate (X) structure and some do not. So it's a perfect use case for a round trip. 😊
Precisely Software Inc.
Original Message:
Sent: 10-30-2023 03:15
From: Michael Michaelsen
Subject: XK02 Change Vendor plant level purchasing date.
Hi Sigrid,
Just wanted to let the group know, that at the end I got it solved with the RFC VENDOR_SAVE, and it works fine, the only detail people have to be carefull with is, that it do not only Send the Fields you have changed to SAP but ALL the table fields, so ex. to change Incoterm, you have to send over all the current Fields and the changed Incoterm.
but is a workable solution combined with a Query script pulling Current LFM2 data :-)
Thanks for the assistance.
------------------------------
Michael Michaelsen
Business Analyst
Vestas España
Original Message:
Sent: 10-20-2023 11:46
From: Sigrid Kok
Subject: XK02 Change Vendor plant level purchasing date.
Hi Michael
I would check with your SAP Basis team.
- GUI scripting is just a recording option. The SAP system has parameters to allow or disallow it. The way it is a bit different from Transaction, but the results are similar. Your Basis team will know if it's allowed or not.
- since this looks custom to me, but I'm not 100% sure, they can help you determine if there is a BAPI and also which fields to select in Direct. This would be my first option to pursue if I was in your shoes, but GUI scripting is a reasonable option, as well.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
Original Message:
Sent: 10-20-2023 11:12
From: Michael Michaelsen
Subject: XK02 Change Vendor plant level purchasing date.
Hi Sigrid
We never use the GUI scripting as we in general run larger loads on schedule. I dont know if there could be a BAPI which could solve this but I never used those, so not really sure how to set them up to run, if there were one.
------------------------------
Michael Michaelsen
Business Analyst
Vestas España
Original Message:
Sent: 10-20-2023 10:23
From: Sigrid Kok
Subject: XK02 Change Vendor plant level purchasing date.
Hi again Michael
Good that you tried those options. My last resort is GUI scripting. Have you tried that? Is that an option for you? (not all SAP systems allow it)
Best Regards,
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
Original Message:
Sent: 10-20-2023 08:25
From: Michael Michaelsen
Subject: XK02 Change Vendor plant level purchasing date.
Hi Sigrid,
I have checked and it's not saved when creating the script and is also not just hidden, I tested recording in batch but the result is the same. Adding the field, it seem not to work, I cannot get it to mark any line in the list :-( even when I try to adding the field my self. neither adding (01) nor with out.
So seem I'm running into a wall where WS cant be used. unless any others have a different proposal.
/Michael
------------------------------
Michael Michaelsen
Business Analyst
Vestas España
Original Message:
Sent: 10-19-2023 10:54
From: Sigrid Kok
Subject: XK02 Change Vendor plant level purchasing date.
Thanks, Michael.
The goal of seeing the technical information is:
(1) was it captured?
(2) if it wasn't captured, is it in the disabled fields in your script (go expert view, then to the view tab, check disabled fields) and search for it - if you find it - enable it
(3) you can also manually add the field and see if that works - copy a row into that section of the script with the pop-up and rename the field to match the technical details you are seeing. Since it is a grid, you may have to add an index, like FOAP_S_SAPMF02K_LIST1-CHECKBOX(01) - 01 for the first row.
Once it is part of the script, I believe you can set it to a capital "X" to select it. Then your search will find 1 row, and you will be passing to SAP to select that row and do the rest of your recording.
Hope that helps.
Best Regards,
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
Original Message:
Sent: 10-19-2023 10:29
From: Michael Michaelsen
Subject: XK02 Change Vendor plant level purchasing date.
Hi @Sigrid Kok :-)
that fine, I have attached a image that show the technical data for the Checkbox. during the script creation, this is ticked off and then I press "Purchasing" which bring me to the final window where the data for the specific plant (5510) is located for change.
------------------------------
Michael Michaelsen
Business Analyst
Vestas España
Original Message:
Sent: 10-19-2023 10:08
From: Sigrid Kok
Subject: XK02 Change Vendor plant level purchasing date.
Hi @Michael Michaelsen
Sorry, that will teach me to jump on the community at the end of a long hectic day - it's in the title! :)
Unfortunately I can't get to anything close to that. I can go to the purchasing data but I don't have a Different Data button. There is an Alternative Data button, but it's not enabled.
and in my other ECC system there is nothing there
In general with a pop-up like that, you can click once on the line - like on the "5510" - and then click the green checkbox button on the bottom to proceed. If that is a checkbox, can you manually check the box? If so, record it and if it doesn't get captured, you can look at disabled fields in Expert view and enabled it. Look at the technical details for the field name in case you're not sure which one it is by hitting F1 and then clicking technical details
Can anyone else help Michael with his question that has a system closer to his?
Thanks & sorry again for me not noticing the tcode :)
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
Original Message:
Sent: 10-19-2023 01:56
From: Michael Michaelsen
Subject: XK02 Change Vendor plant level purchasing date.
Hi @Sigrid Kok,
Sorry for the confusion, as mentioned in the Subject, I am using XK02 :-). I have attached a PDF with the steps I follow in SAP ECC. Everything is OK till I get to step 7, where I cant find a way to tick mark the selection box.
/Regards Michael
------------------------------
Michael Michaelsen
Business Analyst
Vestas España
Original Message:
Sent: 10-18-2023 19:50
From: Sigrid Kok
Subject: XK02 Change Vendor plant level purchasing date.
Hi Michael
Are you on ECC? (assuming that because S4 would be BP)
What tcode is this please? Is it a mass change tcode or something else?
Couldn't you use XK02 instead? It would be pretty straightforward. Just a thought.
Sigird
------------------------------
Sigrid Kok
Precisely Software Inc.
Original Message:
Sent: 10-18-2023 11:40
From: Michael Michaelsen
Subject: XK02 Change Vendor plant level purchasing date.
Hi Community.
First time here :-) I have searched throughthe community and cant find a similar case, so there for I ask for assistance .
I'm trying to create a script to change Currency and inco term on Vendor Plant level (LFM2). when I get tot the point of selecting the plant I have to edit data for, I can search out the correct plant but I cannot get the script to mark the selection tick box and there for end with an Error "Select Valid line".
Do any one have an idea to how I can solve this ?
------------------------------
Michael Michaelsen
Business Analyst
Vestas España
------------------------------