Smartforms query
hi masters ,
i have one query relating to smartform , can you tell me how to call another smart form with in a smart form .
hi
u can do this inside a print/report program.
u can call as many smart form as u want by calling the function module name
which u get by passsing smartform name in se37
regards
ravish
<b>*plz dont forget to reward points if helpful</b>
Similar Messages
-
Smartform query most urgent....
Hello logic thinkers,
the problem is that i need to import the internal table from print program into smartform...
the structure of the internal table consists of different fields from different tables, but in smartform while defining the internal table i need to give the reference type...(declaring the struture in global definition is not working).
for this there r two ways as per my knowledge to create 1.type-pool and 2.structure in se11...
but here i dont want to use the strutures... and type-pool is not working...
can any one help me in this issue.. its very important so that the object to be deliver with in time...
thank u for ur precious time,
shiv.Yes you can do it. In the <i>Global Definitions</i> node, go to <i>Types</i> tab and type in your structure.
Example : Types : Begin Of ly_MARM,
MATNR Like MARM-MATNR,
MEINH Like MARM-MEINH,
UMREZ Like MARM-UMREZ,
UMREN Like MARM-UMREN,
End Of ly_MARM .
and in <i>Global data</i> tab type in the following
<i>Varible Name</i> : G_MARM
<i>Type assignment</i> : TYPE
<i>Associated Type</i> : LY_MARM
Now you can use G_MARM for your output.
Hope this hels -
Hi Experts,
I am new to SmartForms and not quite aware on how it works. I have one final internal table, where I have all the required data, some around 12 coulmns and 25 rows. I want this output to be displayed in a SmartForm and then in a PDF.
Can anyone of you guide me to achieve my goal.
Thanks,
ChandanFollow the below link on how t create a Table in Smartform :
Link: [Create Table | http : //sa ptechnical.com/Tutorials/Smartforms/Table/Create.htm]
Using the below code u can convert u r smartform into PDF :
*& Form F_CONVERT_PDF
FORM F_CONVERT_PDF .
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = W_FORM_NAME
IMPORTING
FM_NAME = W_FMODULE
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
W_CPARAM-NO_DIALOG = 'X'.
W_CPARAM-PREVIEW = SPACE.
W_CPARAM-GETOTF = 'X'.
CALL FUNCTION W_FMODULE
EXPORTING
CONTROL_PARAMETERS = W_CPARAM
OUTPUT_OPTIONS = W_OUTOPTIONS
W_NAMEV = KNVK-NAMEV
W_NAME1 = KNVK-NAME1
W_TELF1 = KNVK-TELF1
W_ABTNR = KNVK-ABTNR
W_AEDAT = EKKO-AEDAT
W_UNSEZ = EKKO-UNSEZ
W_WAERS = EKKO-WAERS
W_ZTERM = EKKO-ZTERM
W_TELF = EKKO-TELF1
W_BANFN = EKPO-BANFN
W_EBELN = EKPO-EBELN
WA_T001W = T001W
W_ADRNR = W_ADRNR
W_ADRNR1 = W_ADRNR1
W_PSPID = W_PSPID
SPELL = W_SPELL
W_NETWR = W_NETWR
W_CST = W_CST
W_VAT = W_VAT
W_SERT = W_SERT
W_ED_R = W_ED_R
W_ED_A = W_ED_A
W_ECESS_R = W_ECESS_R
W_ECESS_A = W_ECESS_A
W_HCESS_R = W_HCESS_R
W_HCESS_A = W_HCESS_A
W_VAT_R = W_VAT_R
W_VAT_A = W_VAT_A
W_CST_R = W_CST_R
W_CST_A = W_CST_A
W_FR_R = W_FR_R
W_FR_A = W_FR_A
W_OCT_R = W_OCT_R
W_OCT_A = W_OCT_A
W_PF_R = W_PF_R
W_PF_A = W_PF_A
W_ST_R = W_ST_R
W_ST_A = W_ST_A
W_GT_R = W_GT_R
W_GT_A = W_GT_A
WA_ADRC = ADRC
W_POST1 = W_POST1
W_BANFN1 = W_BANFN1
W_TEXT = W_TEXT
IMPORTING
JOB_OUTPUT_INFO = T_OTF_FROM_FM
TABLES
IT_FINAL = IT_FINAL
IT_F01 = IT_TEXT
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
T_OTF[] = T_OTF_FROM_FM-OTFDATA[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = W_BIN_FILESIZE
TABLES
OTF = T_OTF
LINES = T_PDF_TAB
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
CHANGING
FILENAME = W_FILE_NAME
PATH = W_FILE_PATH
FULLPATH = W_FULL_PATH
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
OTHERS = 4.
IF W_FULL_PATH IS NOT INITIAL.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = W_BIN_FILESIZE
FILENAME = W_FULL_PATH
FILETYPE = 'BIN'
TABLES
DATA_TAB = T_PDF_TAB.
MESSAGE S000 WITH 'File Downloaded Successfully'.
ELSE.
MESSAGE S000 WITH 'Cancelled by user'.
ENDIF.
ENDFORM. " F_CONVERT_PDF -
How to truncate a field in a Select Query
Hello Gurus,
I am new in SAP, i have a question i am making an appointment letter in SMARTFORMS , in global declaration (initialization) i am using a select query
SELECT SINGLE BET01 FROM PA0008 INTO G_BET01 WHERE PERNR = WA_PERNR.
where BET01 is the Amount field which is getting printed in the smart form but its takes 5 to 6 character blank spaces in the printing time, i want to truncate this space (remove this space ) in the print time , please tell me how to remove this space , the field size is 13 , how can i reduce the field size in my smartform query. please help . G_BET01 is a variableMaybe you can use this.
DATA: d_char(15).
WRITE G_BET01 TO d_char CURRENCY 'XXX'.
'Then you can remove the spaces using :
CONDENSE d_char no-gaps. -
hi everyone,
iam new to smartforms and have a query regarding select st in smartforms,
i have created a table in the main window, in that i have 7 cols,in which the 5th and 6th cols are Quantity(VBRP-FKIMG) and Condition Value (KONV-KWERT) respectively.Now i want the product of these 5th and 6th cols and want the result to be displayed in 7th col. How can i do this and where i have to write the code?
if i want more than 1 row then how can i use the loop for this.
i have written the code to display the 1st 6 cols in the program lines of main window,,,but iam unable to write the code for the product of FKIMG and KWERT.
Plz help me if anyone knows the answer,,its urgent
<b>Points will be rewarded</b>,
u can also mail the answer to this id [email protected]
thnx in adv
ZiaHi,
you can calculate the your 7th column in the program lines.
After creating a table right click > create>program lines.
in this you need to pass the 5th , 6th and 7th column as input parameters and 7th column in the out put parameters.
make the calculation in the program lines as necessary.
Now in the Main area display the 7th coulmn value which is calculated in the program lines.
Another alternative is before the table . create a program lines.
modify the internal table accordingly and then call the table with the modified internal table.
For eg:
Program lines -- zprog
input paramers : itab and output parameters : itab.
loop at itab.
it_tab-colum 7 = it_tab-column 6 * it_tab - column 6.
modify it_tab.
endloop.
In the table under data table pass your modified internal table with workarea.
in the 7th column give &it_tab-column7&. that's it.
Br,
Laxmi -
A query regarding setting default parameters like locl in a smartform.
Hello Everybody,
My query is when I execute a program having a smartform , I need to type locl and then the print preview , now my requirement is when ever i execute a program that has a smartform , program should automatically take the printer as 'locl' and should go to print preview without me having to select the print button. How is that possible .
Thanks
KhaleelHello Mr Grover,
I tried doing as said in that thread but I could not get it right .Could any one tell me where am i going wrong .
g_Control_parameters-NO_DIALOG = 'X'.
g_Control_parameters-PREVIEW = 'X'.
g_OUTPUT_OPTIONS-TDDEST = 'locl'.
*-- to suppress the print preview option .
CALL FUNCTION 'SSF_OPEN'
EXPORTING
OUTPUT_OPTIONS = G_output_options
CONTROL_PARAMETERS = g_control_parameters
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZHR_SCR_L03'
IMPORTING
FM_NAME = WF_FNAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
" MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
" WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION WF_FNAME
TABLES
INT_SALARY = INT_SALARY
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
" here the sy-subrc is coming as 2 WHY?
IF SY-SUBRC <> 0.
"* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
" * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-"MSGV4.
ENDIF.
CALL FUNCTION 'SSF_CLOSE'
IF SY-SUBRC <> 0.
"* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
"* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
MESSAGE S082(Z1)."'No salary has been Changed during the selected period' TYPE 'S'.
ENDIF.
Thanks
Message was edited by:
Khaleel S.Mohammed -
Is there any way to add smartforms to sap Query????
It's a real problem in SAP ERP. We can generate internal reports in sap query, and generate outgoing reports in smartforms. But I really don't understand why they aren't connected!!!!!u can do one thing...
use submit and call the query and get the data in a internal table....
and u pass that value to the smart forms.........
this is possible.........
Reward IF....
Regards
Anbu -
Query related to smartform.
Hello sir's,
I am doing smartform , in that i have a query that,
In one delivery number , if there are 10 items then i want all details of that item numbers and also the sub-totals of that items.
Also the final total of all items.
Can it is possible in smartform , if yes then plz tell me as early as possible .
It's urgent.
Thanks in advance ,
Vikram.Hi,
Look at the below threads. if you sear the forum with Subtotals in SMARTFORM, you can find lot of threads
http://www.erpgenie.com/abap/smartforms_detail.htm
Re: Subtotal with Table Node in smartforms
Regards
Sudheer -
Query reagarding Smartform....its urgent
Hi Everybody,
GoodMorning,
Here is my query on smartform issue.
My net amount exceeding more than one page and i want the total of all the net amount to be dispaly at the end of the last page,but in the last page it is displaying only the total of last page net amount values.
If my net amount values is not exceeding more than one page than it is coming perfectly.
Plz help me how can i dispaly the total of all the net amount values at the end of last page if my net amount values is exceeding more than one page.
Thanks a lot
mrutyun^hi,
Please put a breakpoint in the SmartForm Program lines which are printing these values:
break : <username>.
As I see it, it is some issue with the way the internal table is being handled.
It is always giving total of the current page.
Do post your findings from Debugging
Rgd
Vivek
- Reward points if helps. -
Hi,
I am new to ABAP HR.
I am designing a smartform. I want to populate the fields T513S-STLTX, T528T-PLSTX, T001P-BTEXT in the form. How do I write the select query for it in my driver program?Hi Anita,
You may declare these tables using
<b>Tables:</b> statement
Or you may declare your <b>Internal Table</b> and <b>WorkArea</b> using
<b>Data</b> statement
Data: it_tab type table of T513S, "Internal table
wa_tab like line of it_tab. "Workarea
Data: it_tab1 type table of T528T, "Internal table
wa_tab2 like line of it_tab. "Workarea
<i><b>OR</b></i>
If you are using logical database PNP or PNPCE then you may also use macros.
<i><b>OR</b></i>
You may write this select query within Smartform.
~Bhawanidutt. -
Bezei select query in smartform
Hi all ,
i need to pick bezei from v_tonc and the logic given is like this
"Access table LIKP with VBELN and get INCO1 then
access table v_TINC with LIKP-INCO1 and get BEZEI"
and wrote the query
if wa_likp-inco1 is not initial.
select single bezei from v_tinc into wa_v_tinc
where inco1 = wa_likp-inco1.
its throughing error as Global Definitions : Field " BEZEI" is unknown. It is neither in one of the specified tables nor defined by a "DATA" statement . . . . . . . . . .
I defined it but still....................
please answerHi,
i guess the select single query is wrong:
it suppose to be either of the below 2:
1st Method:
data : wa_v_tinc TYPE v_tinc.
*select single * from v_tinc into wa_v_tinc*
where inco1 = wa_likp-inco1.
OR
2nd Method:
data : gv_bezei TYPE v_tinc-bezei.
select single bezei from v_tinc into gv_bezei
where inco1 = wa_likp-inco1.
U should either get all the columns of V_TINC into a Work Area/Structure (wa_v_tinc) like 1st method or get the single column value (BEZEI) into gv_bezei (global variable) from V_TINC like 2nd method...
but its not possible to get a single column into a structure like:
data : wa_v_tinc TYPE v_tinc.
select *single * from v_tinc into wa_v_tinc*
where inco1 = wa_likp-inco1
Hope it helps!!
Rgds,
Pavan -
Query :Chek box and radio buttons in smartforms
Hi ,
When we go to web properties in text . Thierwe find the entries the field name and dropp down down list with text , radiobutton , chek box Etc . . I have tried to use it but it is not displaying any such radio button or chek box in smartform output .
If somebody has used it before please tell me how to use those things .
RegardsHi,
Ya so please go web properties of text field here u can find check box,
radio button , hidden fields all the stuff u can use that one.
Rewards points if it is useful. -
Query in Smartforms!!!!
Hi all,
Can anyone please tell me how to get the URL of a Smart Form.
Kindly reply immediately as this is bit urgent.
Regards,
Vijayhi
good
Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
thanks
mrutyun^ -
Query regarding templates in smartforms
Hi friends,
In my smartforms, I have used templates to display tabular data and i have defined line no. and column no. under text elements.Now, the data that is coming in the output is repetitive that is its not looping the table although i have used an external LOOP and defined my table and work area in it.
Could anybody help me in making the loop part work?
I will certainly reward points for the desired answer.
Thanks & Regards,
RishiIf you have already set the internal table and the work area, i believe, it just the proper sequence of the node that get something wrong.
Moreover, place the Loop node , the Program Line node and the template node inside the main window....
The template node must be under the Loop node. See below, the proper sequence....
MAIN window
PROGRAM LINE NODE -->place your select statements here...
LOOP NODE --> on the data tab, define your Internal table and workarea
TEMPLATE NODE --> place this node, under the loop node
text node -->this is the first column. Place here the field names. ex.: &wa-fieldname1&
text node -->this is the second column Place here the field names. ex.: &wa-fieldname2&
text node -->this is the third column Place here the field names. ex.: &wa-fieldname3&
text node -->this is the fourth column Place here the field names. ex.: &wa-fieldname4&
After which, run your form...
I hope it solves your problem. Rewards if useful... -
Hi Experts,
I have a requirement in which I am sending a mail through actions.In the action I have mentioned the smartform.The email sent should have voting buttons such as 'YES' and 'NO'.
If the reciever replies back to the email and selects 'YES' the subject line should get propagated with the string 'YES'.
Is this possible using smartforms?
Thanks and Regards
ShilpiHello Mr Grover,
I tried doing as said in that thread but I could not get it right .Could any one tell me where am i going wrong .
g_Control_parameters-NO_DIALOG = 'X'.
g_Control_parameters-PREVIEW = 'X'.
g_OUTPUT_OPTIONS-TDDEST = 'locl'.
*-- to suppress the print preview option .
CALL FUNCTION 'SSF_OPEN'
EXPORTING
OUTPUT_OPTIONS = G_output_options
CONTROL_PARAMETERS = g_control_parameters
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZHR_SCR_L03'
IMPORTING
FM_NAME = WF_FNAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3
IF SY-SUBRC <> 0.
" MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
" WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION WF_FNAME
TABLES
INT_SALARY = INT_SALARY
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
" here the sy-subrc is coming as 2 WHY?
IF SY-SUBRC <> 0.
"* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
" * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-"MSGV4.
ENDIF.
CALL FUNCTION 'SSF_CLOSE'
IF SY-SUBRC <> 0.
"* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
"* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ELSE.
MESSAGE S082(Z1)."'No salary has been Changed during the selected period' TYPE 'S'.
ENDIF.
Thanks
Message was edited by:
Khaleel S.Mohammed
Maybe you are looking for
-
In my blackberry phone whatsapp showing module verify error. Plese help me
Bbm is installed but it is not showingf in menu
-
Hi folks, I have a problem when logging SLD/Repository/Directory. I can't login with XISUPER even that I can login in XI via SAP gui. I found in SDN forums the same problem but the answer was to maintain this user at "admin control". What's is "Admin
-
Hi! I'm looksing for a simple GPL written in java. Statement's should be something like: -addLine l1 at ... -wait for 0.5s -remove l1 -zoom in region at ... (moves smoothly to the new area) -add plot of function ... Does such a language exist? Tkanks
-
Deployment plan - can be packing to ear file?
Hi Lads, I successfully deployed application on Application Server 10g Release 3. I'm using hibernate then in deployment plan I had to unselect toplink libraries. I need distribute my application. Is possible to add deployment plan somewhere to ear a
-
My Iphone is not syncing my photos to my PC
Hi My Iphone until recently would transfer photos from my iphone to my pc whenever I connected them and synced them. This seems to have stopped working. Any ideas? Cheers James