Description
I am running into an issue when trying to add a new object to a material number. The first line of my data file works but the subsequent ones failed
Applies to
Transaction 10.x
Studio 11.x
Solution
The recording mode to use here is 'Non-batch with SAP controls' as we need to capture the 'insert new line' action that is needed to add the class object.
For the first transaction, the material number field does not appear until the class type has been entered. After the first transaction, the material number will be available with the class type.
Steps to be recorded in SAP will be - See full script attached for more details:
1 - Enter the class type
2 - Enter the material number
3 - Hit enter
4 - Select insert row icon
5 - Enter your class object
6 - Save the recording
Tips to keep in mind:
Based on the example below, you will need to copy rows 7 to 12 and row 6, and paste it after the first two screens - So it should be your third screen starting on row 13 as per below screenshot. Then you will need to create the following two If conditions:
First one --> From rows 3 to 12 - the condition should be IF first transaction
Second one --> From rows 13 to 17 - the condition should be IF NOT first transaction
Once you have completed the steps above, your script mapper should look like the one below:
Comments
0 comments
Please sign in to leave a comment.