cancel
Showing results for 
Search instead for 
Did you mean: 

Passing SO number to driver program !!

Former Member
0 Kudos

Hi Guys,

I have to create a sales order in smartforms and develope a Z driver program but the problem is about passing the SO number to my Z program. My zprogram will be attached to NACE and the user will see the standard screen where he will enter the SO number .

how should i pass this SO number to my Z driver program ?

Points will be rewarded !!

Accepted Solutions (1)

Accepted Solutions (1)

former_member181995
Active Contributor
0 Kudos

Poonam,

you can send SO number from form by export this value and import that value in SSF*** FM which you are using in Z program.

either you can write small select query in zprogram also for selecting this SO number from VBAK.

Amit.

Former Member
0 Kudos

thnx for ur reply amit....

in which variable with this SO number be saved in the smartform ??

Answers (3)

Answers (3)

Former Member
0 Kudos

thnx for replying guys !!!!....

Former Member
0 Kudos

Hi,

I beileve the SO number would be available in the NAST-OBJKY.

Please check the print program in debug mode for the field NAST-OBJKY.

Then pass this value to a suitable structure available in the smartform interface or modify an existing structure to accomodate the field populated with the SO number and it would be available in the smartform.

Regards,

Ram

Former Member
0 Kudos

declare it in the form interface-import section

and pass it to smart form as:

  • Call Smartfrom to print the document

CALL FUNCTION v_form_fm

EXPORTING

p_so_number = v_so_number (your variable)

EXCEPTIONS

formatting_error = 1

internal_error = 2

send_error = 3

user_canceled = 4

OTHERS = 5.

reward if helpful