Skip to Content
author's profile photo Former Member
Former Member

Need to load blank field value

Hi,

We are loading the data from ECC. And today the load failed at the DSO activation step due to a special character in one of the fields. The field is called Item Text and it is of char 60. The value in that field is # at the PSA level and it is been understood that ! and # are not allowed as the first character of the string and this failed because of that. when we approached the ECC team for this field value they informed that the value has been deleted in the source system. Now i would like to understand is: if go to PSA and delete the # and save the record and try to load into DSO, what will happen. Will it again take the value as # due to the field being blank or will it load.

Please let me know.

Regards

Vijay

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 06:39 PM

    You have to first delete this request from your DSO

    Now OPen PSA and edit the record.

    Note down the value in this filed

    Delete the whole data and type the value that you have noted down without the # and save it.

    Note : You might face same issue in another record when you load again.

    Also set your RSKC to ALL_CAPITALS

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Vijay,

      try this code:

      DATA: p_ix LIKE sy-index.
      CONSTANTS: c_allowed (100) TYPE c
      value 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_1234567890'. "define your allowed characters
      RESULT = SOURCE_FIELDS-Your_field_name.
      TRANSLATE RESULT TO UPPER CASE.
      DO 60 TIMES
      p_ix = sy-index - 1.
      If RESULT+p_ix(1) CO c_allowed.
      * allowed character do nothing
      ELSE.
      * character is not allowed replace with blank
      RESULT+p_ix(1) = ' '.
      ENDIF.
      ENDDO.
      

      This code will help you in future cases too if there is a character which is not allowed or invalid.

      Code example is like in book "ABAP Development for SAP NetWeaver BI u2013 User Exits and BadIs"

      by Dirk Herzog which includes many such useful examples.

      I use it my self and it is working great.

      Regards

      Andreas

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 06:43 PM

    Hi Vijay,

    If my understanding is right, if you change the record in PSA now and load the data from PSA to your DSO, the changed record will be loaded into DSO. If you remove # in PSA, the loaded data in DSO doesnot contain # value.

    Regards,

    KK.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.