on 07-12-2012 3:27 PM
Hi Experts,
and how would you solve this?
Now I have
/: SET DATE MASK = 'DD.MM.YYYY'
/ &DATE&
and would like to have for US "YYYY/MM/DD" and for others 'DD.MM.YYYY'
Please advice. I am beginner.
Thank you very much.
Kasia
Hi,
1) First get the data of vendor into internal table (itab)
2) loop the internal table and in between the loop call the write_form with element
3) Under that element(in script) write the if condition based on country
eg: if itab-country eq 'US'.
/: SET DATE MASK = YYYY/MM/DD
else if
/: SET DATE MASK = 'DD.MM.YYYY'
endif.
Thanks
Naresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Create a routine in your print program and call it in your smartform and in in program put the condition that for us
/: perform <form_name> in program <program_name>
/: using <var1>
/: using <var2>
.
.
/: changing <return1>
/: changing <return2>
/: endperform
In program
FORM <form> TABLES fp_it_intab STRUCTURE itcsy
fp_it_outtab STRUCTURE itcsy.
.....
.....
Endform.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
sorry, it should depends of country in vendor master data. Thx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
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.