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

sapscript standard text clear

Former Member
0 Likes
939

hi all,

how can i clear standard text created using so10 in sapscript...

i am passing a internal table to the sap script but am gettting only the datas under first line item.First line item contain 3 records that am able to get but Secong line item contain 4 records is not showing by instead the first line item datas(3) are appearing..

please help..

safel

5 REPLIES 5
Read only

Former Member
0 Likes
785

Hi,

The Key to READ_TEXT FM i.e. the object name would be document number and item number.

So concatenate document number and the item number to get the text against each line item.

Regards,

Raghavendra

Read only

0 Likes
785

hi,

am using

CALL FUNCTION 'SAVE_TEXT'

EXPORTING

header = w_header

can u please explain ur logic?

can i clear standard text in sapscript>

Edited by: Safel007 on Aug 10, 2009 2:44 PM

Read only

Former Member
0 Likes
785

hi,

In my case i was updating purchase order text.

i_text-tdobject = 'EKKO'.
  i_text-tdname   = l_pono.
  i_text-tdid     = 'F02'.
  i_text-tdspras  = sy-langu.

  CONCATENATE text-019 ':' wa_upload_file-leg_pono INTO l_header_txt.

  l_text-tdline   = l_header_txt.
  l_text-tdformat = 'X'.
  APPEND l_text.
  CLEAR  l_text.


  CALL FUNCTION 'SAVE_TEXT'
    EXPORTING
      header          = i_text
      insert          = 'X'
      savemode_direct = 'X'
    TABLES
      lines           = l_text
    EXCEPTIONS
      id              = 1
      language        = 2
      name            = 3
      object          = 4
      OTHERS          = 5.
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

  CLEAR: i_text,l_text,l_pono.
  REFRESH: l_text.

Hope it helps!

Regards,

Read only

Former Member
0 Likes
785

Hi,

If your question is to clear the standard text in script created in so10...

then the answer would be:

there would be a code written to include that standard text in the script.. just go aheard and comment it, so that it will not pull the data displayed in that standard text... In scripts you can comment using "/*".

And if you want some changes in that standard text then go to that standard text in so10 and make the necessary changes.

Thanks,

Read only

0 Likes
785

HI,

commenting stndrd text will not help my requirment..

i am looping the text.. so that latest work area has to appear.. in scripts..

so i need to clear the old workarea from the text.

any suggestions?