AT New in smartform
Hi all,
I have a internal table, in that there are the following fields
STAX
SNO
NAME
NOINV
I want to write a header text when AT NEW STAX* is triggred. how to achive this
in smartforms.
Thanks in advance,
Mahi.
method.
loop u r final itab.
put one more field in itab with text----,
whenever at first is triggered , u pas the text data to this field, other wise you pass null data.
endloop.
in the text/cell ,call that text field directly.
THIS MAY HELP YOU OUT.
OK
Similar Messages
-
Creating a new PO-SMARTFORM in SRM Environment.
Hi,
Could any one of you plz let me know the process to create a new PO-SMARTFORM in SRM Environment.
Plz share if any valuable documents are available.
Thanks,
Sree.hi,
See these links:
Re: SRM PO SMARTFORM
EBP PO Smartform?
SRM PO SMARTFORM
BR,
Disha.
Do reward points for useful answers. -
Hi i m new to smartform So need material
Hi can anyone provide me all the links for the smartforms right from the basics since i m new to smartforms its urgent
hi nabheet,
check these links.
http://www.sap-img.com/smartforms/smartform-tutorial.htm
Check these links.In this,I am explaining everything step-by-step.Kindly reward points by clikcing the star on the left of reply,if it is useful.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
Check these links also.
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
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
http://www.sapgenie.com/abap/smartforms_detail.htm
http://help.sap.com/saphelp_46c/helpdata/en/9b/e3b0d9c2a711d3b558006094192fe3/frameset.htm
http://help.sap.com/saphelp_46c/helpdata/en/9b/e3b0dcc2a711d3b558006094192fe3/frameset.htm
Regards....
Arun.
Reward points if useful. -
New PO Smartform Assiging problem
Hi All,
i have created new smartform for PO print.
i have assigned My smartform in Nace also
NACE-> EF -> OUTPUT Type -> NEU -> Processing Routines
Medium = 1
Short text = Print output
program = SAPFM06P
Form Routin = ENTRY_NEU
Smartform = Z_SSF_MM_PO
I Have assigned all and Save the output type and clicked on Transport from Menu.
Now when i execute ME23n and trying to see Printpreview , I am get another smartform which i dint assign anywhere.
In Messages i have set output NEU only.
Kindly please tell me what could be the problem and how to find out the smartform which is triggering .
Thanks all.thanks for you reply.
Acually i am not able to find which smartform is cald, that is the main problem.
I have created new PO in ME21N and assigned my Output TYpe NEU and Clicked on Print Preview then also the other Smartform is cald .
I couldnot find that smartform. -
HI, could any one give me step by step procedure to create a smart form from scratch. With screen shots using print program.
Hi Amarnath,
Please refer the below links,
smartform step by step material required
smartform
smartform material help
Smartform tutorial
Regards,
Hema.
Reward points if it is useful. -
New SMARTFORM's do not work when sending to Service Desk message processor.
We have been using Solution Manager Service Desk and the standard SMARTFORMS to mail details of the service ticket to the person requesting support and the message processor.
We are using the CRM_SLFN_ORDER_SERVICE_01 and CRM_SLFN_ORDER_SERVICE_02 SMARTFORMS.
We wanted to make some changes to these SMARTFORMS and therefore have copied these using the Z name space.
We then reconfigire the Action Definition and select the new 'Z' SMARTFORMS that we have created. However, when we create a support ticket the automatic mail generation no longer works.
When we revert back to the standard original smartforms the automatic e-mail generation starts to work again.
Is there something we have not done with the new 'Z' SMARTFORMS that we need to do, so that the mail generation starts to work.
SimonI have the following errors:
Function Module /1BCDWB/SF00000015 of smartform delivered an error Message no. SPPF_MEDIA018
Error when sending to Message no. SPPF_MEDIA043
Line 2 column 1 do not exist Line 2 column 1 do not exist.
Message no. SSFCOMPOSER178
Diagnosis
During table output you tried to position the cell with the address line = 2, column = 1, but this cell does not exist.
System Response
The system issues an error message.
Procedure
This is probably an internal error. Please contact the SAP hotline and report the problem. -
PASSING INTERNAL TABLE IN SMARTFORM
HI' I M NEW TO SMARTFORMS, MY PROBLEM IS =THAT
I'VE CREATED A NEW TYPE(SAY TY_BKPF) IN THE DRIVER PROGRAM.
THEN I'VE DECLARED AN INTERNAL TABLE OF THIS TYPE.
TO PASS THIS INTERNAL TABLE INTO MY SMARTFORM I'VE PASSED THE INTERNAL TABLE'S NAME INTO THE FUNCTION MODULE UNDER THE TABLES PARAMETER.
BUT I'M NOT ABLE TO UNDERSTAND AS TO WHAT TYPE SHOULD I GIVE IT IN THE FORM INTERFACE IN THE TABLES TAB.
PLZ HELP.Define table in smartforms
Global settings :
Form interface
Variable name Type assignment Reference type
ITAB1 TYPE Table Structure
Global definitions
Variable name Type assignment Reference type
ITAB2 TYPE Table Structure
Also have a look at below sample code. It will give you idea abt the same.
REPORT ZSMARTFORM.
Calling SMARTFORMS from your ABAP program.
Collecting all the table data in your program, and pass once to SMARTFORMS
SMARTFORMS
Declare your table type in :-
Global Settings -> Form Interface
Global Definintions -> Global Data
Main Window -> Table -> DATA
TABLES: MKPF.
DATA: FM_NAME TYPE RS38L_FNAM.
DATA: BEGIN OF INT_MKPF OCCURS 0.
INCLUDE STRUCTURE MKPF.
DATA: END OF INT_MKPF.
SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
MOVE-CORRESPONDING MKPF TO INT_MKPF.
APPEND INT_MKPF.
ENDSELECT.
At the end of your program.
Passing data to SMARTFORMS
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZSMARTFORM'
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 FM_NAME
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
GS_MKPF = INT_MKPF
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.
Have a look at below link for more help on smart forms.
http://sap.ionelburlacu.ro/sap0/sapsf001.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers -
hai all
iam new to smartforms iam trying a simple scenario
where iam getting data from kna1 based on customer
<b>in form interface</b>
i declared as
itab like kna1
<b>in global definitions</b>
wa_kna1 like kna1
<b>in table section</b>
when i gave
itab into wa_kna1
the error is
itab is neither defined under tables nor defined as an internal table
can any one help me how to solve and creat a formHi Pavan,
Check the following Code
SELECT SINGLE A~ADRNR
B~NAME1
B~CITY1
B~POST_CODE1
B~STREET
B~COUNTRY
B~P_O_BOX
INTO CORRESPONDING FIELDS OF ADRC
FROM KNA1 AS A
INNER JOIN ADRC AS B
ON
BADDRNUMBER = AADRNR
WHERE
A~KUNNR = X_VBRK-KUNAG.
here ADRC is used in Input parameters side.
Here ADRC is define in Global Definitions Section Like this way
ADRC LIKE ADRC
and the above selected fields are used in some window
&ADRC-name1&
&ADRC-city1&
&ADRC-post_code1&
&ADRC-street&
here ADRC and V_LANDX is used in Input parameters side.
where as ouput parameters side use V_LANDX only
Getting Country Description.
SELECT SINGLE LANDX INTO V_LANDX
FROM T005T
WHERE LAND1 = ADRC-COUNTRY AND
SPRAS = SY-LANGU.
&v_landx&
Regards
Sreeni -
Regarding changing smartform LE_SHP_DELNOTE
Hello experts,
Avi here ....
i am new for smartform developement
can any one suggest me how to change the system inbuilt smartform LE_SHP_DELNOTE as it is my requirement..... how to have those privileges to change any system inbuilt form.
waiting for ur reply
Best regards,
A v I .Check if your data is ok, meaning that you indeed have an address maintained for the ship-to of this delivery.
Hope it helps,
Leonardo De Araujo -
Duplex printing of invoice list in smartform
Hi,
I am new to smartforms and I have to handle duplex printing. I need information like how to give the page sequence for duplex printing.
I have 2 pages, page 1 prints the header list of the invoice. Page 2 prints the invoice list and has the main window, hence if the data in the 2nd page overflows then the invoice list will be printed on the 3rd page. In this scenario I have to get terms & conditions printed behind all the 3 pages.
I created page3 with terms & conditions. This is the way I gave:
PAGE1 - Print mode: D; Next page: Page3
PAGE3 - Print mode: ' '; Next page: Page1
PAGE2 - Print mode: D; Next page: Page3
I have a doubt like if the 3rd page is printed with invoice list then will the 3rd page contain the terms & conditions? Please correct me if I am doing wrong.
Thanks & Regards,
Kate.Hi
It depends on where you've placed those data, if they are in the bottom of the main, yes you're right: they'll be printed only in the last page.
If they're are in another window, they are printed in every page (where the window is defined).
Max -
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 -
Hi Expert,
I am new to SmartForm and WDP. I try to follow the below instruction to do, but got lots of error. Could anyone help me on this?
http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0de1eb8-0b98-2910-7996-8a3c2fcf6785
My smartform name is ZSGPayslip and with 1 parameter named "MYDATE".
According to the instruction, I should only create 1 node and 1 attribute, but I am not sure why the below code is calling another. Please hlep.
Thanks,
WF
Edited by: williamfok on Feb 1, 2010 12:59 PM
Edited by: williamfok on Feb 1, 2010 12:59 PMTo call A smartform in Web dynpro View, Make an Interactive UI element on Layout
Create A node name PDF with an attribute SOURCE type string in context tab of view.
Bind the Interactive UI element with Source attribute . And write the below code in WDDOINIT method to call Smartform ZG2_SMARTFORM_TEST.
method WDDOINIT.
* Reading Node for display
DATA LO_ND_NODE_FOR_DISPLAY TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_NODE_FOR_DISPLAY TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_NODE_FOR_DISPLAY TYPE WD_THIS->ELEMENT_NODE_FOR_DISPLAY.
* navigate from <CONTEXT> to <NODE_FOR_DISPLAY> via lead selection
LO_ND_NODE_FOR_DISPLAY = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_NODE_FOR_DISPLAY ).
* get element via lead selection
LO_EL_NODE_FOR_DISPLAY = LO_ND_NODE_FOR_DISPLAY->GET_ELEMENT( ).
* get all declared attributes
LO_EL_NODE_FOR_DISPLAY->GET_STATIC_ATTRIBUTES(
IMPORTING
STATIC_ATTRIBUTES = LS_NODE_FOR_DISPLAY ).
* Calling Smartform
DATA LV_SMARTFORM TYPE RS38L_FNAM.
DATA LS_SSFCTRLOP TYPE SSFCTRLOP.
DATA LS_OUTPUT_OPTIONS TYPE SSFCOMPOP.
DATA LS_JOB_OUTPUT_INFO TYPE SSFCRESCL.
DATA LT_LINES TYPE STANDARD TABLE OF TLINE.
DATA LV_BIN_FILESIZE TYPE I.
DATA LV_PDF_XSTRING TYPE XSTRING.
data LT_OTFDATA TYPE TABLE OF ITCOO.
* -- Get the name of the smartform function module
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZG2_SMARTFORM_TEST'
* VARIANT = ' '
* DIRECT_CALL = ' '
IMPORTING
FM_NAME = LV_SMARTFORM
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
BREAK-POINT.
* Implement suitable error handling here
ENDIF.
* -- Call the smartform
LS_SSFCTRLOP-NO_DIALOG = SPACE.
LS_SSFCTRLOP-GETOTF = ABAP_TRUE.
LS_SSFCTRLOP-NO_DIALOG = 'X'.
LS_SSFCTRLOP-PREVIEW = 'X'.
LS_SSFCTRLOP-GETOTF = 'X'.
LS_SSFCTRLOP-LANGU = 'EN'.
LS_SSFCTRLOP-DEVICE = 'PRINTER'. "LOCAL_PRINTER2 'LOCAL_PRINTER1'.
LS_OUTPUT_OPTIONS-TDPRINTER = 'PDF'. "'PDF1'.
LS_OUTPUT_OPTIONS-TDDEST = 'LP01'.
LS_OUTPUT_OPTIONS-TDIMMED = 'X'.
Ls_OUTPUT_OPTIONS-TDDELETE = 'X'.
Ls_OUTPUT_OPTIONS-TDLIFETIME = 'X'.
Ls_OUTPUT_OPTIONS-TDDEST = 'LOCL'.
CALL FUNCTION LV_SMARTFORM
EXPORTING
CONTROL_PARAMETERS = LS_SSFCTRLOP
OUTPUT_OPTIONS = LS_OUTPUT_OPTIONS
USER_SETTINGS = 'X'
GS_NODE_FOR_DISPLAY = LS_NODE_FOR_DISPLAY
* custom_input = ls_your_custom_smartform_input
IMPORTING
JOB_OUTPUT_INFO = LS_JOB_OUTPUT_INFO
EXCEPTIONS
OTHERS = 0.
REFRESH LT_OTFDATA.
LT_OTFDATA[] = LS_JOB_OUTPUT_INFO-OTFDATA[].
CALL FUNCTION 'SSFCOMP_PDF_PREVIEW'
EXPORTING
I_OTF = LT_OTFDATA
EXCEPTIONS
CONVERT_OTF_TO_PDF_ERROR = 1
CNTL_ERROR = 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.
* -- Convert the OTF data to xstring
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 255
IMPORTING
BIN_FILESIZE = LV_BIN_FILESIZE
BIN_FILE = LV_PDF_XSTRING
TABLES
OTF = LT_OTFDATA[]
LINES = LT_LINES
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 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.
CHECK LV_PDF_XSTRING IS NOT INITIAL.
DATA LO_ND_PDF TYPE REF TO IF_WD_CONTEXT_NODE.
DATA LO_EL_PDF TYPE REF TO IF_WD_CONTEXT_ELEMENT.
DATA LS_PDF TYPE WD_THIS->ELEMENT_PDF.
DATA LV_SOURCE TYPE WD_THIS->ELEMENT_PDF-SOURCE.
* navigate from <CONTEXT> to <PDF> via lead selection
LO_ND_PDF = WD_CONTEXT->GET_CHILD_NODE( NAME = WD_THIS->WDCTX_PDF ).
* get element via lead selection
LO_EL_PDF = LO_ND_PDF->GET_ELEMENT( ).
* @TODO handle not set lead selection
IF LO_EL_PDF IS INITIAL.
ENDIF.
* set single attribute
LO_EL_PDF->SET_ATTRIBUTE(
NAME = `SOURCE`
VALUE = LV_PDF_XSTRING ).
endmethod. -
Hiiiii,
I am new to smartforms and i need to show range of dates in smartforms.
I am trying in driver prog. n i got correct data in final internal table but cant
fetch correct data using fm in driver prog.
Thank You...Hi,
1 Create a Structure ZSELECTION in SE11 with following fields
SIGN
OPTION
LOW
HIGH
This structure is similar to the selection-option internal table.
2 In smart form u2018ZSELECT_FORMu2019, create an entry in to TABLES in the Form Interface.
3 Define Structures in TYPES tabs in GLOBAL DEFINITIONS
4. Do the global declartation
5 go to mainwindow
create-->Flow logic -
> program lines
The PERNRS given in the select-option in the driver program is captured in T_SELECT. In program lines, T_SELECT is input to SELECT query and the results are captured in internal table T_0002. We have to mention resulted internal table T_0002 in output parameters for further use.
loop the internal table
wite the printporam
Regards,
DHina.. -
Hi,
I have totally three pages in my smartform.In which the first page consists of line item details from a quotation, second page consists of details for the first item in the first page and the third page consists of remaing details of the same first item.Now after the third page, again the second page shld get triggered with the second items details and so...on.But the problem in my smartform is both the item details are getting printed inthe same second page.What shld i do for this.I am very much new to smartforms.Plz help.
Thanks,
RajeshHi Rajesh
i guess this is wat you want,
3 diff pages with first page being the index containing all the line items
second page containing few details and third page contianing the remaining details of the same line item. Again 2nd and 3rd should be repititive for rest all line items.
For this You create 3 pages namely index details1 details 2.
now for first page(INDEX) inside the main window create one COMMAND line in that Go to New page option is there,check it and assign detail 1 page to it.
do the same for second page and give detail2 as next page inside the command line of detail1 page.this way you will get the details of one line item in two pages respectively. -
How to create 2 tables data in smartforms
Hi
I am new to smartform. I have minimum knowledge in smartform.
here I have 2 tables. I want to display 2 tables data. How to create a smartform using these two tables? I know create a smart form using one table.
Please tell me
ThanksOk you are passing fields from two different tables i believe
1)For that jus give internal tables name as i said in your form interface->tables
2)And in global data please mention your both tables work area
3)Now in main window create table and ther in data give any 1 of the internal table name into WA
4)Create loop for that right click->flowlogic->loop here mention your second table and its respective WA.
5)Under this loop create table line->row->cells.
6)Now mention your fields in respective cells as per your req
This fields can be from any of your two internal tables.
Swetha
Maybe you are looking for
-
SAP NetWeaver 7.02 trail version installation error during START INSTANCE
Hi all, Please help me in solving this installation problem. I've tried installing the setup several times but every time i get this same error that : An error occurred while processing option SAP NetWeaver 7.0 including Enhancement Package 2 > SAP A
-
When running the PXI-5610 adjustment procedure in Calibration Executive , the main power suddenly shut off . then what problem will happen to the PXI 5610?
-
ColdFusion 10 standalone is locally vulnerable by default on Linux
By default, on Linux, the ColdFusion 10 standalone installer creates almost 800 word-writable files and directories. To mention a few: The <install_dir> directory <install_dir>/jre/bin/java executable Linux CF10 admins need to make sure they correct
-
Uiadump32.exe has stopped working
My HP DV3 running Vista Home Premium got hack by trojan. I decided to reinstall the system using recovery disk. Everything went smooth until at the end when install the software, I got the error "uiadump32.exe has stopped working". After 3 time retry
-
Control key not working on MB Pro while connected to windows 2008 server through 2x client. Any ideas? Works on windows XP through parallels desktop.