Application Development 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: 

Regarding enhancement in BADI

Former Member
0 Kudos

Hi:

Is there anyone who has done modifications on MIGO transaction using MB_MIGO_BADI. I need to attach an extra tab with some extra fields. Please give me the complete detail. Points will be rewarded.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

Check this link

https://forums.sdn.sap.com/click.jspa?searchID=4337016&messageID=3896299

<b>Reward points for useful Answers</b>

Regards

Anji

3 REPLIES 3

Former Member
0 Kudos

Hi

Check this link

https://forums.sdn.sap.com/click.jspa?searchID=4337016&messageID=3896299

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos

hI,

Please take a look at these threads:

Regards

Former Member
0 Kudos

hello,

Please follow the steps:

go to se19:create a custom BADI and create

give implementation name as MB_MIGO_BADI and create

once inside the BADI->fill the text -> on the top menu -> GOTO -> Sample code ->copy->SAP asks if over write is O.K...click "YES"

Activte and Run "MIGO"

You can notice that a custom "MIGO_BADI_EXAMPLE" in the header and another tab in the detail screen...

I have implemented the same scenario in MIGO header and item level with the extra fields being diverted to another Z-table

following are the steps i followed

1) create an instance of the BADI....go to se19..create BADI..give definition name

as MB_MIGO_BADI and activated after copying the sample code from

GOTO->sample code-> COPY to get an extra tab in header and item level inside

the BADI

2)Did changes to the screen fields in PBO header inside the interfaces at

PBO_HEADER

PAI_HEADER..commented unnecessary codes in the BADI

the program name(e_cprog ) in the PBO_DETAIL contains screen 001/002 for item and 003/004 for header PBO_HEADER..go change the screen fields to be added according to your requirement here in the program

3)in the ( IF_EX_MB_MIGO_BADI~POST_DOCUMENT) which is the

POST_DOCUMENT in the interface tab,in the update function module code was

written to fill in the desired table fields(CALL FUNCTION " function name" IN

UPDATE TASK)

inside the "POST DOCUMENT" you can see the importing parameters are (MKPF and MSEG)

there is a code "MOVE-CORRESPONDING is_mkpf TO gs_exdata_header." and a simultaneous update task function module being called which saves data into the table required.I used the structure of my requirement which is a Ztable structure and added code in update task function module to update the ztable required

Reward points if they were of any use

Regards

Byju