on 02-09-2007 9:16 AM
hi,
in my smartform..one of teh reqirements is i need to fetch the knb1-zterm field to the form. but if teh field value equals to 'cam3' it should be printed as '30 days' in the output form. pls help me where should i give the condition here..can i use teh 'alterantive' option the form...if sopls tell me the procedure to do so...thnx in advance...
santosh.
No need for an alternative condition node.
Create 2 text items:
On one of them you output: &knb1-zterm& and in conditons tab of that text set knb1-zterm <> 'cam3'
On the other text item you ouput '30 days' and in conditions tab of that text set
knb1-zterm = 'cam3'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi sathish, u can achive this as follows.
1. in global difinations>global data declare 2 varialbles 1 is for knb1-zterm,,,(v_xxx), and another is for text valeu--''cam3'.... (v_yyy) .
2.then in the INITIALIZATIONS tab> INPUT and output PARAMETERS>give the field names declared in setep1.
3. in the initalizations..
select zterm from knb1 into v_xxxx where xxxxx.
if v_xxxx = 'CAM3'.
v_yyy = ''30 days' .
endif.
.
4. intet a text node in u any window (where u want to print the valeu) the print this v_yyy.
<b>one more thing T052 and T052U table u will get all the Paymnent terms and the TExt to the Payment term</b>
<b>in anothter way...</b>
same as above... but here dinamically u can select the text from database table..wht ever the value in knb1-zterm... u cane get the text from T052
select TEXT1
from T052U
into v_yyy
where spars = sy-langu and
zterm = knb1-zterm
.
let me know if u have any issues
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
declare variable in global definition.
in page and window tree
suppose you have created text node to display the data, before this
right click mouse button and ->select create-> program lines.
here you can write abap code.
check the condition.
if zterm = 'cam3',
MOVE '30' TO variable.
endif.
and display this variable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.