Current Position:Home > Abap code to replace the bank values of Date Field with 20990101

Abap code to replace the bank values of Date Field with 20990101

Update:11-30Source: network consolidation
Advertisement
Please correct my abap code I am just trying to replace the bank values of Dataefield to 20990101 but i am getting the error invalid dataformat '00000000 '. Please correct my IF statement so that I can get this resolved
IF    SOURCE_FIELDS-DATETO = '00000000 '
      RESULT = '20990101'.
ENDIF.
Thanks'
Soniya

The Best Answer

Advertisement
Hi Soniya,
You can use one of the following:
IF SOURCE_FIELDS-DATETO =  ' '.
RESULT = '20990101'.
ENDIF.
or
IF SOURCE_FIELDS-DATETO IS INITIAL.
RESULT = '20990101'.
ENDIF.
or
IF SOURCE_FIELDS-DATETO = '00000000'.
" THERE WAS A SPACE IN YOUR CODE.
RESULT = '20990101'.
ENDIF.
Regards,
Satya
  • Abap code to replace the bank values of Date Field with 20990101 Update:11-30

    Please correct my abap code I am just trying to replace the bank values of Dataefield to 20990101 but i am getting the error invalid dataformat '00000000 '. Please correct my IF statement so that I can get this resolved IF    SOURCE_FIELDS-DATETO = '

  • ABAP code in update rules to convert the date Update:10-11

    Hi, Could any one send me the ABAP code that is written in the update rules to convert the date (DD/MM/YYYY  -- lenght 10) to YYYYMMDD ---  length 8  format. Also please let me know where I should write this code; while creating update rules or while

  • ABAP Code in Start Routine for restricing the data records from ODS1 - ODS2 Update:10-11

    Hi I need small ABAP Code in Start Routine Of Update rules Of ODS . Im in BW 3.5 . I have records like below in first layer ODS and i want to restrict some records while going to second layer ODS .. ODS1 :- DocNO   EventType    Date 123         001  

  • Looking for a third party utility to replace a file's "modified Date" field Update:10-11

    For video files, apparently the organizer displays the thumbnails with the date taken from the file's "modified date" field. For some wierd reason (which I'm discussing with Adobe CS) the organizer changed the date of all my videos in the "

  • How to reduce the run time of ABAP code (BADI) when it is reading huge data from BPC Cube and thus writing  back huge data to the cube. Update:11-30

    Hi All , In Case of reading huge amount of record from BPC Cube  from BADI code , performing calculations and writing back huge amount of data into the cube , It takes lot of time . If there is any suggestion to read the data  from Cube  or writing d

  • Abap code not working  - deleting based on master data table information Update:10-11

    Hi, I wrote a piece of code earlier which is working and during test we found out that it will be hard for the support guys to maintain because it was hard coded and there is possibility that users will include more code nums in the future sample cod

  • Simple Abap Code Case i_chabsnm is not working Update:11-30

    Please help me asap, I am trying to enhance the BW datasource with only one field "Responsible" in 0refx_2 datasource . I am getting the error in code that case i_chabasnm is unknown and tables not defined by data statement please help me to cor

  • Need Abap Code Help Update:11-30

    Hi , I am trying to activate an ODS but it is failing the activation process . When I look into the application log I see this error    "Value 'RAM???¿????????S RAM' (hex. '4D41524B3F3F3FBF3F3F3F3F3F3F3F3F5320574F524B') of characteristic ZEUID contai

  • Abap code for splitting date needed Update:11-30

    Hi Experts, I need ABAP code or a function module to split date into date, month and year. As I have very little knowledge in ABAP, I do not know how to do it. Kindly help me. Thanks in advance, With Kind Regards, KannanHello kannan, I tried writing

  • Data Integrator - ABAP Code created. Update:11-30

    Hello All, We are looking at migrating data from our SAP ECC system.  Will Data Integrator create the ABAP code for me that will extract the data from ECC? Thanks, Nick.Hi santoshnirmala , Thanks for the reply.  So if I use Data Integrator, selct a c