on 07-18-2007 2:43 PM
Hi All,
I am not too much into smart forms but I am doing something which is not giving me results. I have the following print program code :
DATA: FM_NAME TYPE RS38L_FNAM.
tables: marc,t001w,adrc.
data: begin of it1 occurs 0.
include structure marc.
data: end of it1.
data: begin of it2 occurs 0,
address(80) type c,
end of it2.
data: once_address,
last_underline.
select * into table it1 from marc up to 200 rows.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'Z_TESTING_FORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE: / 'ERROR 1'.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
CALL FUNCTION '/1BCDWB/SF00000213'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
it1 = IT1
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Now in the smart form under loop node I am printing the data in line type as &IT1-MATNR& but system is displaying the data as it is, value of material is not being printed when I see the print preview. I have defined IT1 in my tables parameter of form and under loop node I also have given IT1 INTO IT1, no separate work area I am using. what is the problem when I put up the break point in the generated function module and I go inside I see values are coming under internal table but why it is not printing the value of internal table. Could you throw some light on this if something is not clear kindly let me now so that I can give some more info.
One more thing if anyone of you have self made tutorial of smart form I would kindly like to have it.
Thanks,
Mark
thanks for the guidence
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks you guys I have got the answer the problem was that I did not make use of field list. Now it is coming. Could you let me know in what real sense I will use: I have a header table and item table lets say vbak and vbap now through smart form I want to make display data as header and then its line items. Which strategy should I user I mean table or loop or complex section.
You people really have been a good hint.......:)))
Thanks,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Could you once check the tag column of that text element in smartform?
Regards,
Raju
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
No as I already have told I already checked out in debugging print program is populating the internal table and it has the values from table MARC. But when I give it in smart form like &it1-matnr& it just displays as it is. What am I missing kindly guide me.
Thanks,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, previously I understood your question wrongly,
Solution to current problem is Click the "+" symbol and write &it1-matnr&, now it displays the contents. if you write it directly it will consider as text element.
OR
click on FIELD list ON/OFF, now you can see all your variables, drag & drop the desired field.
reward points if useful.
regards,
sairam
I guess in your program you are passing empty internal table to smart form. Try to set break-point in your program and check whether the internal table is populate or not.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.