on 09-05-2007 6:00 AM
hi,
i am using Standard SapScript Driver Program RVADIN01 for my smartform,
smart form i am developing from scratch. which will creates invoice, Credit Request, Debit Request. to make use of this driver program for my smart form what are the relevent changes to be made ?
please reply.
thanks in advance.
If that driver program contains OPEN_FORM , START_FROM, WRITE_FROM CLOSE_FORM etc, comment all those and add this code in place of them for reading your smarform,
data : v_form_name TYPE rs38l_fnam.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = '<b>GIVE YOUR SMARTFORM NAME</b>'
importing
fm_name = v_form_name
exceptions
no_form = 1
no_function_module = 2
others = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CALL FUNCTION v_form_name
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Don't forget to close your thread once your question is answered... Reward points to all useful answers.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.