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: 

Finding Sales order number in RVADOR01

Former Member
0 Kudos

Hi Gurus,

For printing Sales order we will assign the form in nace for driver program RVADOR01.

My question is Sales order program is different. Driver program is different and from driver program our form will be triggered. How the program RVADOR01 knows the sales order number when we click on print preview in sales order?

Thanks

Ravi

1 ACCEPTED SOLUTION

amit_khare
Active Contributor
0 Kudos

There is a predifined subroutine to which these tcodes look for in the driver program attach with TCODE NACE.

e.g. FORM ENTRY or PROCESSING, etc...

Even if you are using a custom program in place of standard deliver driver program, you need to add these routines in your program.

3 REPLIES 3

amit_khare
Active Contributor
0 Kudos

There is a predifined subroutine to which these tcodes look for in the driver program attach with TCODE NACE.

e.g. FORM ENTRY or PROCESSING, etc...

Even if you are using a custom program in place of standard deliver driver program, you need to add these routines in your program.

maciej_domagaa
Contributor
0 Kudos

It takes the document number from structure NAST which is filled by the calling process - note that this structure is declared with "TABLES" statement so the same instance of this structure is known for both RVADOR01 and the program that calls it.

To see more details look at the subroutine GET_DATA in program RVADOR01.

regards

0 Kudos

Solved