2007 Feb 15 12:02 PM
Hi All,
I have developed a invoice and assigned it to an output type for transaction VL02N..
I want this invoice to be printed for transaction VL02N.
Can any one tell me how to capture the delivery document entered by the user in my z program for the above transaction.
Regards
vijay
Hi All,
I have developed a invoice and assigned it to an output type for transaction VL02N..
I want this invoice to be printed for transaction VL02N.
Can any one tell me how to capture the delivery document entered by the user in my z program for the above transaction.
Regards
vijay
2007 Feb 15 12:07 PM
You can do it using below code in your Z report:
DATA: p_vbeln LIKE LIKP-VBELN.
GET PARAMETER ID 'VL' FIELD p_vbeln.
Field p_vbeln will have entered delivery number.
Thanks
2007 Feb 15 12:11 PM
// iwant this invoice to be printed for transaction VL02N.
but VL02N outbound delivery ..
how will it accept invoice number of VF01?
can u brief ur requirement in details as what u are looking for ?
regards,
vijay.
2007 Feb 15 12:29 PM
Hi,
I think I have confused u.... m sorry for that
It is not an invoice ...
it is an gate pass which needs to be generated for each delivery.
I want to capture delivery document number along with other details in that gate pass.
2007 Feb 15 12:11 PM
Hi,
Why You assigned VL02N TCode for an INVOICE?
Have you developed your own Script/SForm for Invoice?
Do you wants to trigger it from Std Invoice Print Program? Are you are using your own driver Program?
If you Know Invoice No: VBRP-VGBEL field will give the DELIVERY No.
Regards,
Anji