‎2007 May 16 12:52 PM
Hi All,
I have two document type(blart), one is 'DG' and other one is 'KG' . Now based on that I want to display like:-
Supose if blart=dg
then it should show debt note.
and if blart = kg
it should show credit note.
How i will write tyhe syntaxt for that.
could any one tell me that.
‎2007 May 16 12:54 PM
Add two text nodes and in the output condition tab provide you check.
For Condition 1 display first node.
For condition 2 display second node.
Regards,
Amit
‎2007 May 16 12:54 PM
Add two text nodes and in the output condition tab provide you check.
For Condition 1 display first node.
For condition 2 display second node.
Regards,
Amit
‎2007 May 16 12:57 PM
Hi
In that header display window write the code(program lines)
declare a global variable v_text1(15).
If bsart field values are in ITAB structure
if ITAB-BSART EQ 'KG'.
v_text1 = 'CREDIT NOTE'.
elseif ITAB-BSART EQ 'DG'.
v_text1 = 'DEBIT NOTE'.
endif.
then use this variable in the header document display
Reward points if useful
Regards
Anji
‎2007 May 16 12:57 PM
Hi,
Store the data in an internal table.
If itab-blart EQ 'DG'.
itab-shkzg(debit credit indicator) = 'H'.
else if itab-blart EQ 'KG'.
itab-shkzg = 'G'.
end if.
H - Debit.
G - Credit.
(or else)
data : indicator type c(10).
If itab-blart EQ 'DG'.
INDICATOR = 'DEBIT'.
else if itab-blart EQ 'KG'.
INDICATOR = 'CREDIT'.
end if.
Regards,
Priyanka.
Message was edited by:
Priyanka Neelam