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: 

Doubt IN BADI

Former Member
0 Kudos
75

Hi Experts,

My requrement is on BADI's but i have not much idea on this requrement,requirement is as follows:

· A user exit is needed on the delivery that rebrands sub items into the header item and the header item will then be Post Goods Issued.

· This needs only to be done for materials with ‘Item Category’ equal ‘ZTNB’.

· The SAP sales BOM functionality needs to generate movement types 309/310 rebrands for the component materials and 601 on the header or additized material.

· We want 309 Credit entries on the base product instead of additized product.

· This is needed to create the correct financial posting as well as stock movements

· It can now check the header MOT of the delivery for PK as well as the item category of the sales BOM header ZTAQ

This is the screen flow for transaction MB11 which can be called via the ‘Call Transaction’ statement. It shows all data needed to process this transaction.

It is not necessarily wanted that the user exit BADI - LE_SHP_GOODSMOVEMENT calls this transaction.

plz help me out from this problem.

Thanks

3 REPLIES 3

Clemenss
Active Contributor
0 Kudos
46

Hi kiran,

I hope you don't expect us to do the work assigned to you.

If you really have "not much idea on this requrement", SAP would call this a 'consulting issue'.

To me it looks like a task where experience and senior knowledge is required.

It is hard to know what you know and what you don't know.

Regards,

Clemens

Former Member
0 Kudos
46

Hi Clemens,

Sorry i dint mean to stop any others work. But im really in a very big problem. That was the requirement in BADI in which i have no idea.

So how can i proceed further? U told me that ther would be a consulting issue.

Please tell me how i can approach towards it.

Regards,

Clemenss
Active Contributor
0 Kudos
46

Kiran,

actually I'm nor sure this is to be done using BADI. SD used form routines as userexits in the includes SAPMV60AFZ*.

A possible approach would be do try to step through the process manually: Do the analysis and explosion of the BOM. Do the necessary changes to the delivery item structure. Make sure this does not affect a related sales order. Post the goods issue and check for the generated material documents in respect of the accounts posted.

Decide the step where the userexit/BADI has to be triggered: On delivery creation/save or on goods issue.

I don't know how deep ist your business and technical knowledge. If you have only minor experience with BADIs and userexits you will find lots of information in many threads in this forum.

After having done the process manually, the technical solution won't be too difficult.

Ich you can do it manually, here is a recipe to find out which BADI can be triggered:

- Goto se24 (Display class cl_exithandler)

- Double click on the method GET_INSTANCE.

- Put a break point at Line no.25 (CASE sy-subrc).

- Execute SAP standard transaction

- do what has to be done - process will stop at breakpoint

- Check the values of variable 'exit_name', it will give you the BADI name called at that time.

Check BADI method called and what data are in the interface.

Wish you success!

Regards,

Clemens