on 2019 Dec 03 11:43 AM
Hi Expert,
I am working on one of the requirement on GTS process.
Where need to add custom functionality on changes of Number under classification tab on /SAPSLL/PRODUCT_03 t-code.
After analysis found BADI /SAPSLL/BADI_EXT_UI_PRD which has used.
I have implemented the /SAPSLL/BADI_EXT_UI_PRD BADI badi and respective definitions.
But /SAPSLL/IF_BADI_EXT_REX_PRD definition is not getting trigger in any of the program execution.
Is there any SAP-Note available to make this BADI functionality available?
Please help.
Regards,
Praveer.
Request clarification before answering.
Hi,
The changed number information can be validate by comparing /sapsll/prcts table data with is_prd-prcts(importing parameter).
LOOP AT is_prd-prgen INTO DATA(w_prgen).
IF is_prd-prcts IS NOT INITIAL.
APPEND LINES OF is_prd-prcts TO li_prcts_temp.
ENDIF.
ENDLOOP.
IF i_prcts_temp IS NOT INITIAL.
SELECT guid_prcts, ernam, guid_pr,
stcts, enduse, guid_ctsnum FROM /sapsll/prcts
INTO TABLE @DATA(i_prcts)
WHERE guid_pr EQ @is_prd-guid_pr.
IF sy-subrc EQ 0.
LOOP AT i_prcts INTO DATA(w_prcts).
READ TABLE i_prcts_temp INTO DATA(w_prcts_temp) WITH KEY guid_prcts = w_prcts-guid_prcts
guid_pr = w_prcts-guid_pr
stcts = w_prcts-stcts
guid_ctsnum = w_prcts-guid_ctsnum.
IF sy-subrc EQ 0.
DATA(l_index) = sy-tabix.
DELETE i_prcts_temp INDEX l_index.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
Internal table li_prcts_temp will be containing changed number.
Regards,
Praveer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveer,
The BAdI Method is triggered during program /SAPSLL/REX_VALUE_CALC_PRG, which is part of the "Determine Re-Export shares" report. The Method is called at the end of Function Module /SAPSLL/REX_CALC_MD_SELECT.
I cannot comment on the suitability of that BAdI for what you are trying to do, but it should be called once you have activated your implementation.
Regards,
Dave
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
why don´t you use Method
/SAPSLL/IF_BADI_EXT_PRD~PRD_POST? It seems more appropriate to me for your Intention. We work with this BADI and it works fine.
Best regards,
Carsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I have already checked this BADI as well, but not getting changed number information into this.
May be I am missing something. Please correct me.
My requirement is capture the changed number information from classification tab and based on that few more customer logic will execute.
Regards,
Praveer.
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 7 | |
| 3 | |
| 2 | |
| 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.