Friday, December 24, 2010
ABAP - DO VARYING - NON-UNICODE programming. Please check the following sample program.


REPORT ztest_program.
TABLES:pernr.
INFOTYPES: 0041.
DATA: BEGIN OF wa_dates,
 dar01 TYPE p0041-dar01,
 dat01 TYPE p0041-dat01,
END OF wa_dates.
SELECT-OPTIONS:s_date FOR p0041-dat01.

GET pernr.
rp_provide_from_last p0041 space pn-begda pn-endda.
DO 12 TIMES
      VARYING wa_dates  FROM p0041-dar01  NEXT p0041-dar02.
  IF wa_dates-dat01 IS INITIAL.
   EXIT.
  ELSEIF wa_dates-dat01 IN s_date.
    WRITE: / wa_dates-dat01, wa_dates-dar01.
  ENDIF.
ENDDO.

1 comment:

  1. What is the difference between the UniCode and Non-UniCode prog. style ??
    Please explain, I have tried Non-UniCode is giving error..

    ReplyDelete

Your useful comments, suggestions are appreciated.Your comments are moderated.

Followers

Contact Form

Name

Email *

Message *

Web Dynpro ABAP Book

An SAP Consultant

Follow US


Want to Contribute ?

If you are interested in writing about the new stuff you learn everyday while working, please write to the.sap.consultants@gmail.com.

Click on Contribution for more details.