on 04-16-2013 10:14 AM
Hi All,
I am trying to create a LSMW program for uploading Catalogs and COde groups (QS41 transaction).
For this, I am using BAPI method using the standard BAPI (QGPR)
I have created the Source structure & fields, and have maintained the structure relations and mappings as well.
The LSMW program is working and posting the IDOCs successfully as well, BUT with one problem.
When I upload 4 codes under 1 codegroup, it is updating only the last record leaving behind the first 3 records.
EXAMPLE:
COLOUR Colour of the Toy 0001 Brown
COLOUR Colour of the Toy 0002 Green
COLOUR Colour of the Toy 0003 White
COLOUR Colour of the Toy 0004 Yellow
After the IDOCs are posted successfully, if I go to QS41, I am seeing only the last record (0004 Green) under COLOUR Code group.
What am I missing here? Please help me in solving the problem.
Thanks in advance!
Regards,
Vinodh
Hello use recording method.
I have made lsmw for both code groups as well selected sets using recording.
regrads/rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Solved this issue myself. Anyways thanks for the support.
SOLUTION: In this BAPI, the code groups and all the codes should go in one IDOC. Initially, the each code of a codegroup was getting updated in separate IDOCs. I corrected the structure and made the input file in such a way that One CODEGROUP and all its correspnding CODES get updated in IDOC.
Firstly, I made one upload file with data for Multiple Source Structure (Sequential File Upload). That means, One Main structure for Codegroup and the other structure for CODES at one level below this Codegroup structure.
Level 1 ----> Code group Structure
|
|----------------> Codes Strucutre (Level2)
Moreover, create a dummy Source field in the Code Group structure and Code structure called RECTY (Record Type). For Codegroup RECTY, give the Identifying Field content as 11 & Code RECTY, give the Identifying Field content as 22.
And this solved the issue. Now the catalogs and codes are getting updated correctly.
Any doubts on this LSMW, you can feel free to contact me.
Regards,
Vinodh
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.