cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Need step to use /SAPSLL/IF_BADI_EXT_REX_PRD interface of /SAPSLL/BADI_EXT_UI_PRD BADI

ipravir
Active Contributor
0 Kudos
804

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.

Accepted Solutions (1)

Accepted Solutions (1)

ipravir
Active Contributor
0 Kudos

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.

Answers (2)

Answers (2)

former_member215181
Active Contributor
0 Kudos

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

former_member256034
Participant
0 Kudos

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

ipravir
Active Contributor
0 Kudos

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.