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

Update Batch characteristics during GR

Former Member
0 Likes
3,651

Hi All,

There is a requirement during Goods Receipt (MIGO) to copy the header text details into one of the batch characteristics details. I have tried with all known exits and BADI's which i am aware of, but unable to find a exit/BADI to achieve the above requirement. Kindly suggest how to achieve the same. Thanks in advance.

Regards,

G

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,510

Hi ,

i think there is one User Exit to update bacth details( sorry i cant remember ...check in SMOD) ,use that exit fm to update bacth char details.

put BP at these FMs ..and see if it stops you while creating MIGO...

EXIT_SAPLV01Z_004/5/6

regards

Prabhu

Edited by: Prabhu Peram on Jul 11, 2011 4:07 PM

9 REPLIES 9
Read only

former_member404244
Active Contributor
0 Likes
2,510

Hi,

Please tell us what are the exits/Badi's you have used.

Regards,

Nagaraj

Read only

0 Likes
2,510

Hi Nagaraj,

I have used few normally used exits and MB_MIGO_BADI, i find all the values related to the GR to validate or change, But batch characteristics is not there to be modified.

Read only

Former Member
0 Likes
2,511

Hi ,

i think there is one User Exit to update bacth details( sorry i cant remember ...check in SMOD) ,use that exit fm to update bacth char details.

put BP at these FMs ..and see if it stops you while creating MIGO...

EXIT_SAPLV01Z_004/5/6

regards

Prabhu

Edited by: Prabhu Peram on Jul 11, 2011 4:07 PM

Read only

0 Likes
2,510

Hi Prabhu,

Tried it, not able to get the name, hence posted. If you can recollect do let me know. Thanks.

Regards

Gowri

Read only

0 Likes
2,510

Hi Prabhu,

Used the exits you gave, it does stop. but as said it does not have values of the characteristics for me to validate or update.

Regards,

Gowri

Read only

0 Likes
2,510

Hi,

In the exit /Badi you can call the below FM "BAPI_BATCH_SAVE_REPLICA" and update the batch charaterisctis.Did you tried?

Regards,

Nagaraj

Read only

0 Likes
2,510

which exit is working ? ...is it 6 ?....i know you dont have any option to update batch chars...so you need to check if any global variables are carrying those char values or not ?....or by using FMs you can update here itself....

regards

Prabhu

Read only

0 Likes
2,510

Guys,

Thanks for all the replies, hope i can close the same.

Hi Nagaraj,

Will try and let you know. I have not used the BAPI, so i need to understand the inputs for the BAPI. In case you have any sample inputs, would be great to speed up the things.

Hi Prabhu,

Forgot to mention that the batch number generation is internal. So the exits related to external wont be called.

It stops at EXIT_SAPLV01Z_001. I have checked all the global variables, None of them hold these values.

Regards,

Gowri

Read only

0 Likes
2,510

Hi,

Have a look at the sameple code for your reference.You can also check the documentation of it.



CALL FUNCTION 'BAPI_BATCH_SAVE_REPLICA'
        EXPORTING
          material                   = matnr
          batch                      = charg
         batchstatus                = batchstatus
         batchstatusx               =batchstatusx
       TABLES
         return                     = t_return1
         classallocations           = t_classallocation
         classvaluationschar        =t_classvaluationchar (If the characterisic value is of character type)
         classvaluationsnum         =it_classvaluation        (if the charatertic value is of FLTP type)

Regards,

Nagaraj