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

Need Explanation about code ABAP

Former Member
0 Likes
952

Hi,

what does mean this code :

*if not SOURCE_ENTETE-MONAT is initial.

*BBKPF-MONAT = SOURCE_ENTETE-MONAT.

*endif.

i find it in LSMW (step number 5)

what does mean exactly initial

i want to integrate some FI document

please help.

Regards

1 ACCEPTED SOLUTION
Read only

George_Lioumis
Active Participant
0 Likes
885

Hi,

initial means NOTHING, NULL, <no value>, space, 0 etc depending on the field type.

In your code, it means that if there something in MONAT (if a month is provided), then BKPF (FI document header month) will get the value from the SOURCE_ENTETE-MONAT month field.

BUT

This code is commented out, so it will not be executed.

Regards,

George

7 REPLIES 7
Read only

George_Lioumis
Active Participant
0 Likes
886

Hi,

initial means NOTHING, NULL, <no value>, space, 0 etc depending on the field type.

In your code, it means that if there something in MONAT (if a month is provided), then BKPF (FI document header month) will get the value from the SOURCE_ENTETE-MONAT month field.

BUT

This code is commented out, so it will not be executed.

Regards,

George

Read only

Former Member
0 Likes
885

Hi,

Initial means contains no data.

Thanks,

Sriram Ponna.

Read only

former_member156446
Active Contributor
0 Likes
885

*if not SOURCE_ENTETE-MONAT is initial.

*BBKPF-MONAT = SOURCE_ENTETE-MONAT.

*endif.

if SOURCE_ENTETE-MONAT contain any data in it

then (BBKPF-MONAT = SOURCE_ENTETE-MONAT)

move SOURCE_ENTETE-MONAT to BBKPF-MONAT.

Read only

0 Likes
885

*if not SOURCE_ENTETE-MONAT is initial.

so initial means that SOURCE_ENTETE-MONAT contain an entry, because i have if not in the beginning

so can i change this line by :

*if SOURCE_ENTETE-MONAT is not initial.

?

Read only

0 Likes
885

yes you can...

award points for helpful answers

Read only

0 Likes
885

Yes you can change that way

or

if SOURCE_ENTETE-MONAT is initial.

else.

" <<<<-- write your code

endif.

Read only

0 Likes
885

Yes you can do that way.

Thansk,

Sriram Ponna.