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: 

How to post GR (tcode: vl06ig) through ABAP?

maria-21
Discoverer
0 Kudos

Whats the field name of 'post gr' in report ws_monitor_inb_del_gdrc ? how to automate posting of gr through abap?

8 REPLIES 8

raymond_giuseppi
Active Contributor
0 Kudos

This is an ALV report, so check its field catalog with Consistency Check

What did you already try, from BAPI_GOODSMVT_CREATE to SUBMIT WS_MONITOR_INB_DEL_GDR with some parameters?


0 Kudos

BAPI_GOODSMVT_CREATE doesn't allow to post goods movements against deliveries, the same way as MIGO doesn't.

0 Kudos

maria_21, by 'field name' do you mean 'Function code' (SJOB)

  • Try to provide full selection and 'Execute in background'

0 Kudos

By field name I mean, the click named 'post goods receipt' that appears on the next screen after executing vl06ig.

0 Kudos

The 'function code' associated to this 'function' is 'SJOB' (execute in background, SAP just changed its text)

DominikTylczyn
Active Contributor
0 Kudos

Hello maria_21

I would use a simple CALL TRANSACTION VL32N USING...

Maybe not the best practice, but trivial to implement and guaranteed to work.

Best regards

Dominik Tylczynski

In some case use VL32, as VL32N is not always able to execute in BDC mode (some controls such as additional Quantities can not be handled - 491875 - Maintenance of Delivery Transactions VL01, VL02, VL31, VL32)

Basically the report WS_MONITOR_INB_DEL_GDRC was created for this reason, function code for 'Code Receipt in Backround' SJOB.

raymond_giuseppi
Active Contributor
0 Kudos

By 'field name' do you mean 'Function code' (SJOB)