Posted: Wed Nov 07, 2007 12:12 am Post subject: Create Delivery using SHP_VL10_DELIVERY_CREATE
Create Delivery from Sales Order Document using
FM SHP_VL10_DELIVERY_CREATE:
Code:
DATA:
if_ledat TYPE lfdat_a,
if_nur_vorgabe_pos TYPE xfeld,
it_key_to_enque_t TYPE shp_vl10_package_t,
it_key_to_enque LIKE LINE OF it_key_to_enque_t,
it_komdlgn_t TYPE shp_komdlgn_t,
cx_sd_order TYPE shp_vl10_sd_order,
ct_vbsk_all_t TYPE shp_vbsk_t,
ct_vbls_t TYPE shp_vbls_t,
ct_key_late TYPE shp_vl10_package_t,
ct_vorgabe_daten_t TYPE shp_vorgabe_daten_t,
ct_vorgabe_daten LIKE LINE OF ct_vorgabe_daten_t,
wa_dlvsrc LIKE LINE OF m_it_dlvsrc,
msg TYPE string.
All created deliveries numbers:
SELECT vbeln
INTO TABLE m_it_vbeln
FROM vbss
FOR ALL ENTRIES IN ct_vbsk_all_t
WHERE sammg = ct_vbsk_all_t-sammg.
All errors during processing:
SELECT msgid msgno msgv1 msgv2 msgv3 msgv4
INTO TABLE it_msg
FROM vbfs
FOR ALL ENTRIES IN ct_vbsk_all_t
WHERE sammg = ct_vbsk_all_t-sammg.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.