11-04-2010 8:45 PM
The requirement of the assignment is to create a stand alone transaction that will reprint a billing document or preview. The ability to do so withVF02 and VF03 is not permitted via security.
A program was created with BDC session to VF02 which then would preview or re-print a billing document. It worked wonderfully. Problem is that user received Error preventing the completion of transaction because of permission. Then I attempted to bypass the BDC and just enter the RSNAST00 program at EINZELNACHRICHT_DIALOG. This also worked fine, but not for the user.
The logic within function module LV60AU04 RV_INVOICE_DOCUMENT_READ perform BERECHTIGUNG_PRUEFEN sets error preventing completion.
Any suggestions on how to bypass the system security?
Regards,
11-04-2010 9:47 PM
Hi,
if form is smart form, this is the way to call it.
data: gv_func type RS38L_FNAM.
1/******FIND SMARTFORM FUNCTION***************************
call function 'SSF_FUNCTION_MODULE_NAME'
exporting formname = c_smartformname
importing fm_name = gv_func
exceptions no_form = 1
no_function_module = 2
others = 3.
2/***************CALL SMARTFORM ******************************
CALL FUNCTION gv_func
EXPORTING
............................
..................................
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
First import your smartform function to your program using actual function to bring required structure(transaction SMARTFROMS click on icon test, you will fucntion name in current box), but then replace with dynamic call(in QA and PRD function will have different name)
Thank you
Jan
11-05-2010 8:34 PM
Thank you for your response Jan.
It was very helpful, but because the program is printing out the Billing document, it is not straightforward as some. By looking at the function module for the form, there are several variables that get passed and some are complex. In order to pass the necessary information, a lot of coding is required. FM LB_BIL_INV_OUTP_READ_PRTDATA was used to gather the required data, but unfortunately, the same permission problem was encountered.
If you have any more helpful hints specific to the invoice program, I appreciate your sharing.
Bela
11-19-2010 9:23 PM
What I did was to copy several function modules that eventually call the RV_INVOICE_DOCUMENT_READ module to print and passed the parameter as no_authority_check = 'X' which is by standard blank.
No other user exit was available to permit this.