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: 

Enhancement VL01n

Former Member
0 Kudos

Hi all,

I need to do following enhacement in transaction VL01N and VL02N when user presses the Post goods issue.

Is there any user exit or i have to use the BAdi.

1. Post Goods Issue in Transaction VL01N/VL02N will trigger MIGO with Material

Movement Type 241.

2. Movement type 241 will trigger BAPI_FIXEDASSET_CREATE1 to create an asset and

provide the asset number to transfer the finished goods to the asset.

Businees Scenario is like-

This enhancement will enable the transactions VL01N/ VL02N to transfer Finished good to an asset using material movement type 241.In addition, the enhancement will allow automatic creation Asset Master to enable 241 to post values to it. Thus when the Sales Order is leased, loaned or placed, the equipment will be delivered to customer as an Asset.

Please send me some material to Study for BAdi's.

Thanks a lot in advance.

Regards,

Saurav

4 REPLIES 4

Former Member
0 Kudos

Please use the include MV50AFZ1 and from routine : USEREXIT_SAVE_DOCUMENT to do the enhancment.

if fcode = 'WABU_T'. ( Fcode for PGI )

write your code ..

Movement type can be obtained in the field

XLIPS-BWART... so check the movement type and do the coding

endif .

0 Kudos

hi ,

Thanks a lot for your useful answer (10/10).

What is the procedure to trigger MIGO transaction when Post Goods Issue is pressed.

For this i need below mapping .

How do we do this kind of mapping , ineed to create the

Z table and do that .

- Company Code (ANLA-BUKRS)

- Asset Class-(ANLA-ANLKL) –Asset class will be derived by mapping of types to

Asset Class

- Serial Number of the material mapped to Serial number (ANLA-SERNR)

- Movement type 241 will post Acquisition value to the asset along with Capitalization

date.

Order Type to Asset Class and OderType/Profit Center to Cost Center will be mapped

by developing Custom Tables

0 Kudos

hi ..

Step1 . Store the necessary values in ztable when PGI button is pressed...

Step2 : Write a program using BAPI_GOODSMVMT_CREATE to do MIGO..( GR or whatever it is.. )

Step 3: Schedule the program for every 1 hour ( Depends upon the frequency of PGI .. just an example)..

After step 3 MIGO will be done for mvmt type 241....

You should not call MIGO transaction in the user exit, even if you call, MIGO will not happen.. there are various reasons why it will not happen... Investigate on your own!!

I have given you the feasible solution .. you can work on those lines..

thanks

krishnan

0 Kudos

Hi,

You can implement BADI LE_SHP_GOODSMOVEMENT and write ur logic in the METHOD CHANGE_INPUT_HEADER_AND_ITEMS.

Regards