Hi Jennifer,
Has anyone successfully created a script for Purchase Requisition ME51N that included Cost Assignments like (Cost Center, Fund, and Functional Area).
I followed your example and included a loop but I keep on receiving this error when I run my script.
Cursor field (COBL-FKBER Functional Area) . SAPLMEGUI 0014 does not exist in dynpro winshuttle
Cursor field (COBL-GEBER Fund) . SAPLMEGUI 0014 does not exist in dynpro winshuttle
Cursor field (COBL-KOSTL Cost Center) . SAPLMEGUI 0014 does not exist in dynpro winshuttle
It looks like those fields are missing the first "MERE" on the name. Maybe that is why those fields are getting an error.
Would you happen to have a solution for that.
Please advise.
Thanks

------------------------------
JR Dira | Business Systems Analyst
Inland Empire Utilities Agency | 909-993-1898
------------------------------
Original Message:
Sent: 02-18-2021 10:04
From: Jennifer Hwang
Subject: ME51N PR line item option for Account Category "standard or service"
Hi JR -
How I would typically approach this is by getting each scenario to work successfully on its own first. So I would make sure to get an ME51N script working that just has Standard, with the looping and all. Then I would make sure to get a separate ME51N script working that has just Service. Once I have both separate scenarios working successfully, then I would combine the two ("save as" one of the scripts and rename and then copy and paste sections from the other script) and use If statements to tell it when to run which line item scenario, using the item category column as the base of my If conditions.
We do have a template available for ME51N, but it is a bit simple. But it will give you the general idea of how your script will look, with the first line item outside of the loop and needing to use the filter
https://community.winshuttle.com/sap-module-templates/viewdocument/create-purchase-request?CommunityKey=8a12989f-fefe-4b81-8147-4bbb11af6820&tab=librarydocuments
We also have an older Youtube video on this t-code. It is using an older version of Studio, but the process for recording the t-code would be similar.
https://www.youtube.com/watch?v=vHDW794dyM0
Thank you!
------------------------------
JENNIFER HWANG | SE
Winshuttle North America
Original Message:
Sent: 02-17-2021 22:40
From: JR Dira
Subject: ME51N PR line item option for Account Category "standard or service"
Hello,
With ME51N, we need help on creating a script that will allow an option for the PR line item to have either (Item category "Standard PR " or "Service PR"). When "Service" item category is chosen the "Service" tab will appear where user can input service number. If Standard PR is chosen the general standard PR tabs will appear for input.
Have anyone came across this process and created a successful script.
Please advise.
Thanks,
------------------------------
JR Dira | Business Systems Analyst
Inland Empire Utilities Agency | 909-993-1898
------------------------------