‎2008 Jan 07 4:06 PM
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
‎2008 Jan 07 4:09 PM
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
‎2008 Jan 07 4:09 PM
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
‎2008 Jan 07 4:10 PM
‎2008 Jan 07 4:16 PM
*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.
‎2008 Jan 07 4:32 PM
*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.
?
‎2008 Jan 07 4:33 PM
‎2008 Jan 07 4:35 PM
Yes you can change that way
or
if SOURCE_ENTETE-MONAT is initial.
else.
" <<<<-- write your code
endif.
a®
‎2008 Jan 07 4:36 PM