Skip to Content
0
Former Member
Dec 12, 2006 at 04:57 AM

How to add an output type to an outbound delivery in abap code?

240 Views

I am issuing an output to an outbound delivery using the following code:

*first check if derylivery output exist in nast

SELECT * FROM nast

INTO TABLE lt_nast

WHERE kappl = 'V2'

AND objky = lv_objky "Delivery number

AND kschl = c_output "SHOR

AND vstat = '0'.

CHECK sy-subrc = 0.

CLEAR w_vbeln.

MOVE gs_delivery-delivery TO w_vbeln.

SUBMIT sd70av2a

WITH pm_nsort EQ '01'

WITH pm_verdi EQ 'X'

WITH pm_vermo EQ '1'

WITH rg_kschl EQ c_output SIGN 'I'

WITH rg_nacha EQ '6'

WITH rg_vbeln EQ w_vbeln SIGN 'I'

AND RETURN.

  • But if does not exist, How do you add it? is there any bapi or function to do this.

Thanks