‎2014 Feb 14 5:27 AM
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
‎2014 Feb 14 7:15 AM
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
‎2014 Feb 20 1:13 AM
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