cancel
Showing results for 
Search instead for 
Did you mean: 

Copying texts from PURCHASE ORDER to GOODS RECEIPT

Former Member
0 Kudos

How to copy the header text from PURCHASE ORDER  to GOODS RECEIPT and then to INVOICE

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member233510
Active Contributor
0 Kudos

Hi Rajesh,

No standard option for this requirement, please check the possibility of using BAdI.

For goods receipt use BAdI MB_MIGO_BADI, Method CHECK_HEADER and for invoice receipt use BAdI MRM_HEADER_CHECK.

BR, Rosh.

Former Member
0 Kudos

hi Rosh,

I am checking ur inputs

tomasz_domanski
Contributor
0 Kudos

Hi,

I guess the texts visible in GR are coming from the transaction where you put them in (e.g. MIGO). so usually you will not move them from PO as PO is linked to GR and it can be derived in the reports using this link.

However if you want to do such thing you can use user exit / BADI on GR, that will open the specified text and copy it to whatever is cominig as header text in GR document. This would mean that you overwrite whatever end user enters into the "header text" in MIGO, so this need to be clear fro everyone.

If you need example BADI for this I can provide it.

BR,

Tomek

Former Member
0 Kudos

could you please give that BADI details

tomasz_domanski
Contributor
0 Kudos

Hi,

Sure, however we use it on item level, so we use:

MB_MIGO_ITEM_BADI

     method ITEM_MODIFY

inside you need to use FUNCTION 'READ_TEXT'


For header you can try below BADI from Rosh, but maybe different method as "check_header" might not be able to actually change header data. Maybe POST_DOCUMENT method will fit your needs better.


BR,

Tomek