Hi, I am new to working with LSMW and i have completed a project for creating purchase orders using the direct data input method. I need to do the same using batch input method, however in the maintain structure relationship step, it is only allowing me to assign one structure to the recording that i have done, however in po creation we need separate (nested) structure for header and line item, could anybody help me past this please?
Request clarification before answering.
hi, in my opinion the best solution is using BAPI way in your LSMW project.
But if you really need to keep using Batch Input, it also can be achieved.
List the main steps as following:
1. Record the BDC script
2. Create <b>two</b> source structure. Let assume SRC1 & SRC2
3. assign one source structure to the BDC target strutcture E.G. SRC1 to TAR1.
4. in the data mapping setting, add code for the item level field like this:
read table SRC2 (index , with key)
TAR1-XXX = SRC2-XXXX.
Then your requirements can be achieved.
Please aware that LSMW will fill the source structure like a internal table in the mapping process. So you can use a READ TABLE action to read the proper record, even you haven't assign this source struct to Target Structure, you still can use it.
Hope this reply will give you some sense.
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 4 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.