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

smartform

Former Member
0 Likes
618

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.

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
576

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

3 REPLIES 3
Read only

amit_khare
Active Contributor
0 Likes
577

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

Read only

Former Member
0 Likes
576

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

Read only

Former Member
0 Likes
576

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