cancel
Showing results for 
Search instead for 
Did you mean: 

changes that are needed for RVADIN01

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member196280
Active Contributor
0 Kudos

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