cancel
Showing results for 
Search instead for 
Did you mean: 

Filling LFSNR (Inbound delivery no) in MIGO header

Former Member
0 Kudos

Dear all,

I would like to fill the eader field GOHEAD-LFSNR (Delivery Note) automatically from the data that the user entered into GODYNPRO-INBOUND_DELIVERY (Inbound delivery) from the selection.

Only with this field filled the later MIRO will run smoothly - but SAP does not propagate and also I did not find an exit that will allow me to do this.

Does anyone have a solution?

Thanks and best regards

Norbert

--

Accepted Solutions (1)

Accepted Solutions (1)

rwarri1
Active Contributor
0 Kudos

Hi,

We are on 4.6C and the field is being propogated. Here's the program and code which does it.

<b>LMIGOHG2</b>

CLEAR: gohead-lfsnr, gohead-mtsnr.

CASE g_sub_general.

WHEN 110 OR 111. gohead-lfsnr = gohead-xblnr.

WHEN OTHERS. gohead-mtsnr = gohead-xblnr.

ENDCASE.

Hope this helps.

Cheers !

Answers (5)

Answers (5)

Former Member

First of all thanks,

and this was helpfull at least in showing me where to look.

We are running 4.7 (business content 2.0) here. The same code is part of our system at PBO but it will not fill anything because also gohead-xblnr is empty.

There is another piece of code in method PAI reading:

gohead-xblnr = gohead-lfsnr.

IF NOT gohead-mtsnr IS INITIAL.

gohead-xblnr = gohead-mtsnr.

ENDIF.

At this point also all the fields used are empty.

The only field that will be filled in the procedure is the 'Bill of Lading' (GOHEAD-FRBNR) that is copied in in Method header_get:

METHOD header_get.

e_gohead = ps_goh

ENDMETHOD.

--

So the question remains: How to get the delivery number from GODYNPRO-INBOUND_DELIVERY to GOHEAD-LFSNR

Anyone got an idea, an exit that might fit,...?

Best reagdrs

Norbert

Former Member
0 Kudos

Dear Norbert,

While doing MIGO, the reference document is your PO or the Inbound delivery #? I think you must be doing it with ref to IBD # to get all the data filled in automatically.

Regards

Keshav

Former Member
0 Kudos

MKPF-XBLNR = delivery note

Former Member
0 Kudos

MKPF-XBLNR = RM07M-LFSNR

delivery note field in migo

delivery note value in migo or mb03 / mb02/ mb01 stored in MKPF -XBLNR field

Former Member
0 Kudos

Thanks Rajesh,

the OSS you mentioned is doing the job for outbound deliveries. I am having the similar problem, just for inbound.

Bestregards

Norbert

rwarri1
Active Contributor
0 Kudos

Hi,

Can you take a look at note 880631. Could be applicable to your system.

Regards,