on 05-09-2013 1:02 PM
Hi Gurus,
I am having 2 BADI's which need to be run when I submits the data in input sheet.
I am trying to write script logics and default as follows.
RM_LO_PRICE.LGF ---
*START_BADI RM_LO
DEBUG=ON
WRITE = ON
*END_BADI
*COMMIT
RM_IM_PRICE.LGF ---
*START_BADI RM_IM
DEBUG=ON
WRITE = ON
*END_BADI
*COMMIT
Defalut.LGF
*INCLUDE RM_IM_PRICE.LGF
*INCLUDE RM_LO_PRICE.LGF.
I tried to club both the scripts in single as
RM_LO_PRICE.LGF ---
*START_BADI RM_LO
DEBUG=ON
WRITE = ON
*END_BADI
*COMMIT
*START_BADI RM_IM
DEBUG=ON
WRITE = ON
*END_BADI
*COMMIT
DEFAULT.LGF ----
*INCLUDE RM_LO_PRICE.LGF
When I submit the data in input sheet. Default Logic is executing Only RM_IM BADI only.
Another BADI, RM_LO is not executing.
Could you please suggest me the possible way to call both the BADI's at once.
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As message says it has duplicate records, any system should not allow duplicate records while committing data so you should aggregate data use. I would suggest use COLLECT statement instead of APPEND in your BADIs which will take care of duplicate and the sign value will get aggregated.
Let me know if you still have the issue.
Hi Praveen,
I see a problem due to the COMMIT statements. Can you try to remove that statement and then try?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
We call dozens of BADI in DEFAULT and it works fine.
Can you check if you have any dumps?
If you don't have dumps can you provide log of that DEFAULT execution? It can be found in UJFS.
Gersh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
14 | |
4 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.