Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

two sapscript in one

Former Member
0 Likes
421

Hi,

I have to design two similar sapscripts with barcodes. The difference between them is two fields.

My question is if it's possible to design only one sapscript with all these fields overlapped and print the fields needed every time?

And with smartforms?

thnks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
399

hi

s...u can do it by placing the same two fields in two different text elements in the script and call them each based on the condition in your driver program

something like this in your write_form

if.

call text-element a

else.

call text-element b

endif

if helpful, reward

Sathish. R

3 REPLIES 3
Read only

Former Member
0 Likes
400

hi

s...u can do it by placing the same two fields in two different text elements in the script and call them each based on the condition in your driver program

something like this in your write_form

if.

call text-element a

else.

call text-element b

endif

if helpful, reward

Sathish. R

Read only

Former Member
0 Likes
399

yes just put conditon when printing that field...or you can either put same field but changed its value in the print program before printing..

Read only

Former Member
0 Likes
399

Hi Alberto

It is possible with smartforms i'm not sure about scripts

But in smartform u can use IF condition to check the related field

U try to use the same if condition in scripts also check whether it is possible or not

Reward if helpfull

Regards

Pavan