2012 Mar 28 5:16 PM
Hi Experts,
I have come across a strange scenario wherein the variable in which i have the value to be displayed in the smartform is not being displayed in the text element. I have written the below code:
DATA: ls_payment_terms TYPE coms_topis,
ls_transferred_date type BDH_WRK.
* ls_date type dats.
READ TABLE bdh_payment_terms INDEX 1 INTO ls_payment_terms.
ls_date = ls_payment_terms-days + BDH-TRANSFER_DATE.
I have given the output date as output parameters and I have declared it in global definition with type DATS.
Now that I have the value in ls_date, i have passed it on to the text element as <N6>&ls_date& </>.
However, this date is not getting displayed in the invoice. What could be the reason?please help.
2012 Mar 29 6:49 AM
What it is displaying?????
Did u written those lines in EDITOR->command propmt right(insert command( like +ve symbol in left side)->symbol)?????
if you not written within command ,then new editor will take as text only.for ex &val& will display like &val& only,not the value of val.
Thank you
Message was edited by: lingaraj desai
Hi Experts,
I have come across a strange scenario wherein the variable in which i have the value to be displayed in the smartform is not being displayed in the text element. I have written the below code:
DATA: ls_payment_terms TYPE coms_topis,
ls_transferred_date type BDH_WRK.
* ls_date type dats.
READ TABLE bdh_payment_terms INDEX 1 INTO ls_payment_terms.
ls_date = ls_payment_terms-days + BDH-TRANSFER_DATE.
I have given the output date as output parameters and I have declared it in global definition with type DATS.
Now that I have the value in ls_date, i have passed it on to the text element as <N6>&ls_date& </>.
However, this date is not getting displayed in the invoice. What could be the reason?please help.
2012 Mar 28 5:46 PM
Hi
Pls put break point in the Smartform function module for below statement and check the value of LS_DATE.
ls_date = ls_payment_terms-days + BDH-TRANSFER_DATE.
Thanks,
Chandra
2012 Mar 28 5:49 PM
Hi,
You must have written the text element 'ls_date manually, In smartforms the variables have to be selected from Field List and drag to the window where we need to display.
Just open the window in which you want to display the 'ls_date', click on the General Attributes tab, click Ctrl+Shift+F4 to display Fields list(Left side bottom), from the Field List select the 'ls_date' field and drag into the window where you want to display..
Thanks & Regards
Bala Krishna
2012 Mar 29 6:45 AM
Hi
Have you debug and checked that data is coming in the variable or not..
and could you please let me know where you write the code for it..
2012 Apr 05 8:42 AM
Hi Girdhari,
I debugged and Checked. The data is appearing in the variable. The code is written in the program lines in a window inside the smartform.
2012 Mar 29 6:49 AM
What it is displaying?????
Did u written those lines in EDITOR->command propmt right(insert command( like +ve symbol in left side)->symbol)?????
if you not written within command ,then new editor will take as text only.for ex &val& will display like &val& only,not the value of val.
Thank you
Message was edited by: lingaraj desai
2012 Mar 29 7:03 AM
Hi Neena,
You Can check at below point.
1) check where u r calculating is_date. Is ur getting correct value . Write Breakpoint just before IS_DATE calculation.
ls_date = ls_payment_terms-days + BDH-TRANSFER_DATE.
2) Before printing check have u written any clear statement , It means check the value just before display .
3) don't write manually ls_date , try to drag from field list .
Once you check all above i think ur problem solved
Cheers
Yukti
2020 Feb 05 10:36 AM
Hi.
I fixed this problem by running a patch that I have for versions prior to SAP. If anyone wants, send me an email: [email protected]
Regards,
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |