cancel
Showing results for 
Search instead for 
Did you mean: 

Reg script condense prob?

Former Member
0 Kudos

Hi

iam trying to modify MEDRUCK for request for quotation printing. in the standard script i was trying to print all variables in one line . for dng that i have to condense variable . how can i condense variables ? i tried with by giving &variable(c)&. but its not working pls provide me the solution

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

it only working with a CAPITAL C

try &variable(C)& this works, as long your variable is of a condesable type (String, char).

Former Member
0 Kudos

I tried with capital C only and my variable type is C. but still no use

Sandra_Rossi
Active Contributor
0 Kudos

there is maybe a little misunderstanding:

1) if variables A = 'HELLO               ' and B = 'WORLD'

&A& &B& will print 'HELLO               WORLD'

&A(C)& &B& will print 'HELLO WORLD'

2) if variable A = 'HELLO               WORLD'

&A& will print 'HELLO               WORLD'

&A(C)& will print 'HELLO               WORLD'

If you want to replace 2 or more successive blanks by one blank, you must use "CONDENSE A" ABAP statement so that:

&A& will print 'HELLO WORLD'

&A(C)& will print 'HELLO WORLD'

Edited by: Sandra Rossi on Jan 20, 2010 5:00 PM: EDITION PROBLEM WHEN MORE THAN 1 CONSECUTIVE BLANK

Clemenss
Active Contributor
0 Kudos

Hi Sandra,

the use of "CONDENSE A" ABAP statement requires external PERFORM, doesn't it. If so, you can use CONDENSE c NO-GAPS.

Regards,

Clemens

Sandra_Rossi
Active Contributor
0 Kudos

of course. NO-GAPS is only to remove completely blanks (if you don't use NO-GAPS, several blank characters are transformed into one blank). I'm not sure whether CONDENSE (with or without NO-GAPS) solves Sidudd problem.

Answers (0)