Application Development and Automation 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: 
Read only

How to capture document number

Former Member
0 Likes
744

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

4 REPLIES 4
Read only

Former Member
0 Likes
652

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

Read only

Former Member
0 Likes
652

// 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.

Read only

0 Likes
652

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.

Read only

Former Member
0 Likes
652

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