cancel
Showing results for 
Search instead for 
Did you mean: 

Origin of a goods issue

bzakaria
Participant
0 Kudos

Hello,

For outbound deliveries, I want to know the tcode used in the goods issue. is that the goods have been released via vl02n or MIGO or a BAPI ... etc

I am looking for a sap table or a report transaction to retrieve this information.

Thanks,

Accepted Solutions (0)

Answers (3)

Answers (3)

DominikTylczyn
Active Contributor
0 Kudos

Hello bzakaria

I still don't know what BAPI you use to post material documents (I assume it's BAPI_GOODSMVT_CREATE) or what your business scenario is.

As you are posting material documents with BAPI you have full control over their content. So why don't you put a marker, a specific value in one of the header fields so you can distinguish these document from those posted directly with MIGO?

Best regards

Dominik Tylczynski

Lakshmipathi
Active Contributor
0 Kudos

For outbound deliveries, you can see in LIKP table itself

DominikTylczyn
Active Contributor
0 Kudos

Hello bzakaria

Try MKPF-TCODE or MKPF-TCODE2.

Best regards

Dominik Tylczynski

bzakaria
Participant
0 Kudos

3a9e4ce873a94034b33dc62b0ce600ee , But these fields do not differentiate between transactions and BAPIs.

Example we have deliveries processed via a program and BAPI, but in the field 'TCODE2' of the table 'MKPF' I find VL02N for deliveries actually processed via VL02N and deliveries processed via BAPI. How to distinguish ?

NB: The field MKPF-TCODE is empty.

Thanks.

DominikTylczyn
Active Contributor
0 Kudos
bzakaria I'm afraid that all the information there is.What's your scenario? Share some more details maybe we can find a solution.
bzakaria
Participant
0 Kudos

3a9e4ce873a94034b33dc62b0ce600ee , we have 3 ways to record a goods issue: via VL02N, via MIGO or via a specific program (it executes a bapi). thanks to this TCODE2 fields I can know the deliveries processed via MIGO. But the others there is always VL02N.