Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can one method import parameters can be added in another method parameters

Sonal_J
Participant
0 Likes
430

hello all,

I am using a BADI WORKORDER_UPDATE in which In_update method is there with certain import parameters.

I want some of those parameters in another method named at_release of same BADI .

Those import parameters are not there in at_release. They are only in Import of in_update.

I have actually created an Implementation of the BADI.

I dont know how to do that please let me know.

Thanks in advance.

hello all,

I am using a BADI WORKORDER_UPDATE in which In_update method is there with certain import parameters.

I want some of those parameters in another method named at_release of same BADI .

Those import parameters are not there in at_release. They are only in Import of in_update.

I have actually created an Implementation of the BADI.

I dont know how to do that please let me know.

Thanks in advance.

2 REPLIES 2
Read only

Former Member
0 Likes
383

Hi Sonal,

IS this issue you were able to solve...i am facing the same situation,

if u got some solution,do let me know.

Thanks,

SA

Read only

uwe_schieferstein
Active Contributor
0 Likes
383

Hello Sonal

The solution for your problem is quite simple:

Define all required IMPORTING parameters of IN_UPDATE as instance attributes of your class, e.g.:

MT_HEADER    TYPE cobai_t_header.

Within method IN_UPDATE store the required IMPORTING parameters, e.g.:

METHOD IF_EX_WORKORDER_UPDATE~IN_UPDATE.


  me->mt_header = it_header.
...
ENDMETHOD.

Within method AT_RELEASE you can access the header data like this:

LOOP AT me->mt_header INTO ...
...
ENDLOOP.

Regards

Uwe