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

VA01 Create from reference funcionality reuse

Former Member
0 Likes
850

Hello everyone,

I'm trying to reuse the VA01 "Create from reference" popup window functionality in a Z program, I can see there's a standard function module "RV_SALES_DOCUMENT_COPY" that includes the popup window, but I cannot make it work because of the structures that define next and previous program and dynpros and I'm getting a program dump, I know a solution is to create a new dynpro in my Z program but I'm trying to figure out if I can reuse all the functionality from this popup and maybe there's another FM I can use so I don't have to code all this functionality, do you have any suggestions?, any help is really appreciated.

Thanks in advance for your answers.

Regards,

Julio

2 REPLIES 2
Read only

Former Member
0 Likes
637

Hi, look at FM CSO_BAPI_SALESDOCUMENT_COPY

and one more good fm to create sales order in dialog

BAPI_SALESDOCU_CREATEWITHDIA

I use it, it works fine

Read only

0 Likes
637

Thanks a lot Maxim,

these are pretty good FM's, but actually I'm just trying to replicate the single pop up screen functionality, I mean just choosing the document functionality popup screen, that's because I have a Z module pool that will do the other needed stuff, but user requested to include the popup window as it is on VA01 for "create with Reference" and I thought maybe it was wrapped as a FM popup screen and returns document number selected by user.

Regards,

Julio