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 ?
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.
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.
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 :)
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.
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.
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.
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)
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.
I would check with your SAP Basis team.
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.
Excellent, @Michael Michaelsen! Thanks for sharing and the warning!
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. 😊