cancel
Showing results for 
Search instead for 
Did you mean: 

Tab problem in sapscript

Former Member
0 Kudos

Hi all,

My requirement is I need to print a form in this format in sapscript: -

All these are in the same text element.

What happen now is the Text Id cannot display in the correct tab when there is more than one line.

Not correct (now)


Type:        TEST FS SPARE
Text Id :    
1234,12345,123456,1234567,12345678,123456789,1234567890,123456,1234567,123456,1234567,12345678,1234567,12345678
Description: Spare Part 

Expected result


Type:        TEST FS SPARE
Text Id :    1234,12345,123456,1234567,12345678,123456789,1234567890,
	     123456,1234567,123456,1234567,12345678,1234567,12345678
Description: Spare Part 

Here is my code


/E      DETAILS
HA     Type: ,,,,,,,,&RIWO1-MATKTX(C)&
HA     Text Id.: ,,,,,,,,&GV_FETXT&
HA     Description.: ,,,,,,,,&GV_DESCP&

  DATA: lv_count TYPE i.
  loop at iviqmfe where fenum > 0 and kzloesch eq space.
    lv_count = lv_count + 1.
    if lv_count EQ 1.
      MOVE iviqmfe-fetxt to gv_fetxt.
    else.
      concatenate gv_fetxt iviqmfe-fetxt into gv_fetxt SEPARATED BY ','.
    endif.
  endloop.

  loop at iviqmfe where fenum > 0 and kzloesch eq space.
    perform print_element using 'DETAILS' 'MAIN'.
  endloop.

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member305388
Active Contributor
0 Kudos

Hi,

Instead of using ' ,,,,,, ' again and again, try giving some value in Tabs in Paragraph formats.. with certain length..

Hope this helps..

Former Member
0 Kudos

Does anyone have the solution for this?