Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SAPCE AFTER CHARACTERS

Hi,

I am downloading a txt file for E payment but i am having one query...

when i download a txt file in header data i have one query

in header my last field is 20 character long but it has 4 character 'ABCD' (FOR EXAMPLE )

So now i want other 16 character should be space

I had done


DATA : SRC_CD(20).

  SHIFT  SRC_CD RIGHT DELETING TRAILING SPACE.
  TRANSLATE SRC_CD USING '* '.

  WA_HEADER-SRC_CD = SRC_CD.

  TRANSLATE WA_HEADER-SRC_CD USING '* '.

  APPEND WA_HEADER TO IT_HEADER.
  CLEAR WA_HEADER.

But when i open the txt file it does not put last 16 space

Pls help me on this.

Regards

Rajan

Tags:
Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question