on 09-08-2008 7:49 AM
Hey,
Can i add logic in Program Lines that if it is satisfying a condition it will call to ADDRESS window otherwise it will call to TEXT WINDOW ?
Problem am facing : (window PARTY ADDRESS)
select single * from kna1 into l_kna1 where kunnr = it_header-kunnr.
if the above statement is true then It will call to ADDRESS NODE otherwise it will call to some Text nodes (&g_name1& , &g_name2&)..
Thanks in Advance
SATYA
Edited by: Satyabrata sahoo on Sep 8, 2008 12:26 PM
Hi,
Write the logic in INITIALIZATION and set a flag... Based on the value of the flag set the CONDITION in the
Condition TAB of the window.
Write code in INITIALIZATION TAB of GLOBAL DECLARATION AS BELOW.
Clear flag. " Declare the flag variable in Global declarations...
select single * from kna1 into l_kna1 where kunnr = it_header-kunnr.
IF sy-subrc eq 0.
flag = 'X'.
ELSE.
Flag = ' '.
ENDIF.
That would solve your issue.
Good luck
Narin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create Alternative node
It is basically works on condition (like if endif)
try this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use condition from condition tab in ADDRESS NODE and Text nodes rather than in program lines.
Edited by: Amit Gujargoud on Sep 8, 2008 8:59 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.