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

Problem in SAP SCRIPT

Former Member
0 Likes
1,603

Hi Experts,

I am working on SAP SCRIPT and I am giving condition in one of my script window.

Now, my problem is while I am giving condition in script editor it is not coming in one line therefore I have to continue that condition in next row but when I am doing that condition is not working.

Kindly inform me how I can extend that condition to next row.

I guess I am making any scene.

Kindly help me.

Tnx and Regards,

Sandeep Singh

8 REPLIES 8
Read only

narendar_naidu
Active Participant
0 Likes
1,486

Hi Sandeep,

As per my understanding you ...want to write a condition which extends to next line..

u can achieve this by pressing F4 in the first column(where u give paragraph format) and selecting extended line  or line feed.or line feed and extended line. as per your requirement.

Once your issue is resolved...please close the thread...

regards,

Read only

0 Likes
1,486

Hi naren,

I did that but unfortunately what condition I am giving in that extended line it is printing in my form as it is.

Regards,

Sandeep

Read only

0 Likes
1,486

hi Sandeep,

Did you try with all the three options , and also did you close the condition with a fullstop.

regards,

Read only

Former Member
0 Likes
1,486

Hi Sandeep,

Please try using '='  like below.

/: If ( A = B )

= or (A = C).

Regards,

Greeshma.

Read only

VenkatRamesh_V
Active Contributor
0 Likes
1,486

Hi,

try this, script.

/: IF &LIKP-KUNNR(C)& NE ' '.

= &kna1-name1&,,&kna1-LAND1&,,&kna1-ORT01&.

/:ENDIF

Regards,

Venkat.

Read only

Former Member
0 Likes
1,486

Hi Sandeep,

Please try to click first line and use change commnad button from that window screen then your condition will be come in single line like below nad you can change your condition as required.

Regards,

Prasenjit

Read only

Former Member
0 Likes
1,486

Hi,

Try using the command line '/:' as well for the consecutive lines.

Read only

Former Member
0 Likes
1,486

Hi

you can not extend a command into several lines.

what u can do is

  • use left side -- right side of SO10/SAP-Script-Text to double the available length
  • use shorter variable names
  • or simply do ur conditions in ur formular programm and not in the SO10-Text. A condition that does not fit into 1 line should not be placed in the SO10/SAP-Script-Text itself - but thats only my opinion...

regards

Stefan Seeburger