Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Get Parameter from Standard Transaction to BADi

Hello All!

I have activated a BADi for validation in transaction FF_5. I need to make some process on it and it's necessary to get a value from <b>FF_5/Do not post</b> field.

Question: How can I pass the value from this field to BAdi?

I tried by GET Parameter and import commands but were unsuccesfull.

Thanks in advance,


Former Member
Former Member replied

Hello Michel

Assuming that you are using BAdI FEB_BADI you may try the following coding:

METHOD if_ex_feb_badi~change_posting_data.
* define local data
    ld_prog1(50)  TYPE c  VALUE '(RFEBKA00)PA_TEST',
    ld_prog2(50)  TYPE c  VALUE '(RFEBKA30)PA_TEST',
    ld_prog3(50)  TYPE c  VALUE '(RFEBBU00)TESTL'.

    <ld_test>  TYPE ANY.

  ASSIGN (ld_prog1) TO <ld_test>.
  IF ( <ld_test> IS NOT ASSIGNED ).
    ASSIGN (ld_prog2) TO <ld_test>.
  IF ( <ld_test> IS NOT ASSIGNED ).
    ASSIGN (ld_prog3) TO <ld_test>.

  check ( <ld_test> is assigned ).

  IF ( <ld_test> = 'X' ).
    MESSAGE 'Testrun -> do not post'  TYPE 'I'.
    MESSAGE 'No test -> do post'  TYPE 'I'.


In order to check which report eventually is used for selecting the data go into the debugging mode and push the button CALLS. There you will see all reports, classes etc. that have been called thus far.

The technique shown above was taken from:

<a href="">SAP User Exits and the People Who Love Them</a>



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question