How to get source programe for smartform
hi
i want to know source programe for smartform.
thanks .
hi,
1. Go to the smartforms transaction.
2. Chose from menu Environment->Function Module.
3. Note the name of the fm.
4. Go to se37.
5. Place the cursor on the Fm name and do a where-used-list.
6. You will find the programs which use that fm.
or you can find it in NACE transaction
or in the table tnapr.
Rgds
Reshma
Similar Messages
-
How to get standard program ,script,smartforms all from sap
hi friends
how to get standard program ,script,smartforms all from sap.
thanks®ards
BabasishHi,
reports:
goto se38
all programs not starting with y or z will be sap std programs only
same for se71 scripts
samse for smartforms
but the use of those will be known when you see the documentation
for each programme
for std programs there will be documentation available so that you can understand
why they have developed that object
thanks & regards,
Venkatesh -
How to write print program for smartforms
Hi all
I need to develop new smartform and its print program.
But Im not experience in writing print program for smartform.
Ive gone through the simple print program sample that use only one table as input and one table for output.
But my smartforms require few tables for input and output.
How should I define the Data?
Can anyone guide me on how to write it.
Thanks & Regards
azTransaction code SMARTFORMS
Create new smartforms call ZSMART
2. Define looping process for internal table
Pages and windows
First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
Here, you can specify your title and page numbering
&SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
Main windows -> TABLE -> DATA
In the Loop section, tick Internal table and fill in
ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
3. 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
4. To display the data in the form
Make used of the Table Painter and declare the Line Type in Tabstrips Table
e.g. HD_GEN for printing header details,
IT_GEN for printing data details.
You have to specify the Line Type in your Text elements in the Tabstrips Output options.
Tick the New Line and specify the Line Type for outputting the data.
Declare your output fields in Text elements
Tabstrips - Output Options
For different fonts use this Style : IDWTCERTSTYLE
For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
5. Calling SMARTFORMS from your ABAP program
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
Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
http://sapr3.tripod.com
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.
Reward points... -
How to get source code for WinCE 6.0 USB Camera Driver for ARM4I Processor
Hi,
I am implementing USB camera driver for my mini2440 board which has an ARM4I processor. The sample code
"Windows Embedded CE 6.0 USB camera Driver" downloaded from:
http://www.microsoft.com/downloads/en/details.aspx?FamilyID=2ef087c0-a4ae-42cc-abd0-c466787c11f2
does not support ARM4I processors. When trying to generate in VS2005 Platform Builder my WinCE 6.0
image for mini2440 with the Third party catalog items "MJPEG Decompression Filter" and "USB CameraDriver",
the linker giver errors. Please advise where to find a working source code for USB (now revision 1.1
("full-speed") is supported in my WinCE 6.0 image) camera for my ARM4I processor. The code should
be in C# but C++ will be fine also.
Thanks,
Pauli get this on the hyperterminal when i run the cameradshowapp.exe
Compulab Windows CE NAND X-Loader for CM-T35
Built Dec 20 2009 at 16:48:16
Version 1.01.222
Commit Date 16/12/09
Jumping to bootloader
Microsoft Windows CE Bootloader Common Library Version 1.4 Built Dec 20 2009 16:
46:16
INFO:OALLogSetZones: dpCurSettings.ulZoneMask: 0x200b
Texas Instruments Windows CE EBOOT for CM-T35, Built Dec 20 2009 at 16:48:10
Version 1.01.222
OMAP3430 Version 0x4b7ae02f (Unknown)
TPS659XX Version 0x10 (ES2.x)
-OEMPinMuxSetup....
System ready!
Preparing for download...
INFO: Predownload
+FMD_Init
Checking bootloader blocks are marked as reserved (Num = 6)
+FMD_Init
WARN: Boot config wasn't found, using defaults
+FMD_Init
OALFlashStoreOpen: 4096 blocks, 64 sectors/block
OALFlashStoreOpen: 2048 bytes/sector, 14 reserved blocks
Calling LCD_TurnOn
+FMD_Init
+FMD_Init
BLConfigureFlashPartitions: dwBootPartitionSectorCount = 0x5fff, partition actua
l size =0x4d3a!!!
Hit space to enter configuration menu 5...
Hit space to enter configuration menu 4...
Hit space to enter configuration menu 3...
Hit space to enter configuration menu 2...
Hit space to enter configuration menu 1...
INFO: Boot Device location = 0x8000020
Load NK image from flash memory
+FMD_Init
ROMHDR (pTOC = 0x823b8c28) ---------------------
DLL First : 0x4001c001
DLL Last : 0x41c7c0d8
Physical First : 0x84001000
Physical Last : 0x863bbdec
Num Modules : 294
RAM Start : 0x863c0000
RAM Free : 0x863d5000
RAM End : 0x90800000
Num Copy Entries
Copy Entries Offset : 0x85256e38
Prof Symbol Length : 0x00000000
Prof Symbol Offset : 0x00000000
Num Files : 116
Kernel Flags : 0x00000002
FileSys RAM Percent : 0x00000020
Driver Glob Start : 0x00000000
Driver Glob Length : 0x00000000
CPU : 0x01c2
MiscFlags : 0x0002
Extensions : 0x84002020
Tracking Mem Start : 0x00000000
Tracking Mem Length : 0x00000000
NK Image Loaded
Launch Windows CE image by jumping to 0x80001000...
Windows CE Kernel for ARM (Thumb Enabled) Built on Apr 5 2011 at 17:47:22
+OEMInit
ýSETDATAOUT access is OK....
Forcing clean boot
MainMemoryEndAddress = 0x90800000
-OEMInit
+FMD_Init
Dumping registry defined VK
Row 0: 0x18 0x9 0x25 0x0 0x0 0x0
Row 1: 0x26 0xd 0x28 0x0 0x0 0x0
Row 2: 0x27 0x24 0x23 0x0 0x0 0x0
Row 3: 0x0 0x0 0x0 0x0 0x0 0x0
Row 4: 0x0 0x0 0x0 0x0 0x0
Row 5: 0x0 0x0 0x0 0x0 0x0 0x0
SMSC922x: Core Ethernet Init.
Lan9220 identified. ID_REV = 0x92200000
SMSC922x: MAC address = 00:01:c0:0a:a0:db
Lan9220 identified. ID_REV = 0x92200000
SMSC922x: MAC address = 00:01:c0:09:88:80
SDIO8686: Loading Driver [version = 38.p44]
SDIO8686: Reset with TPS GPIO 2 --> done
!!!Kernel mode PSL 'PRdr' de-registered!!!
!!!Kernel mode PSL 'HRdr' de-registered!!!
!!!Kernel mode PSL 'FRdr' de-registered!!!
EHCI USB Host: HcdPdd_Init+
[OTG] OMAPMHSUSBOTG::Init()+
OMAPMHSUSBOTG::PostInit(): Start.
DSPLINK Module (1.61.04) created on Date: Jun 24 2009 Time: 16:30:52
Display parameters:
Height = 0x280
Width = 0x1e0
HSW = 0x20
HFP = 0x8
HBP = 0x17
VSW = 0x1
VFP = 0x4
VBP = 0x3
DVI is not enabled
PixelClkDiv = 0x7
LogClkDiv = 0x1
ClkSelDSS = 0x5
TD035:: LCDTurnOn
TD035STEE1: Turned display on.
TD035:: Finished LCD VGA init
AUTOLAUNCH: Checking HKEY_LOCAL_MACHINE\Startup key for programs to run.
Can't open HKEY_LOCAL_MACHINE\Startup key.
[WiFi]: Firmware Version: 9.70.3.23
CCaptureFramework: Failed setting up the camera data.
CameraDShowApp: Initializing the camera driver list failed.CameraDShowApp: Retri
eving the driver list failed.CameraDShowApp: Selecting the camera device failed.
CameraDShowApp: Selecting the camera device failed.CameraDShowApp: Selecting the
camera device failed.CameraDShowApp: Selecting the camera device failed.CCaptur
eFramework: Retrieving the still stream config failed.
CameraDShowApp: Initializing the capture graph failed. -
How find out print program for smartform?
i know smart form name but i want printprogram name for that.how to find?pls help me.
Hi
There's no method.
If you're speaking about a smartforms for logistics module (SD,MM), you can you the transaction NACE (or table TNAPR) in order to findout which program is assigned to that smartforms.
U can also try to find out all programs using the fm SSF_FUNCTION_MODULE_NAME and get only the program where the string containing the name of your smartform.
Max -
How to get source code for commands like diff or cat
Hi all
I'm learning c programming and i'd like to read some code for the basic commands on the linux system
I remember apt has one such option that allows getting pakcage source code
is there a similar one for pacman ?
or do i have to search those source code myself ?
and also in BSD system all the codes are availeble in a code repository
thxdiff and cat. Or was that too literal?
Last edited by Ghost1227 (2009-04-18 23:57:55) -
To find print program for smartforms.
pls tell me how to find print programs for smartforms.pls tell me with all steps.clearly.i tried with tanpr table but unable to find
hi,
Please take a look at the NACE transaction where all the output conditions will be configured. Drill down into you specific application and you should be able to find the print program as well as the smart form name.
Steps..
Use NACE and follow procedure as follows
1)Choose Application from list(eg PO)
2)Click OP type
3)Chose one OP type from Right pane.
4)Click on processing routines
and you got it
regards,
keerthi -
How do I get a program for windows to open without putting windows on my computer
How do I get a program for windows to open and setup on my Macbook Pro without purchasing windows?
Try running it through CrossOver Mac or WineSkin.
(82008) -
How to get active programs/custom ABAP developments for past 6 months?
All,
Is there any transaction/table/program/FM to get active programs for past 6 months?
Intention here is to get actively used custom ABAP developments.
Regards,
SreeHi Sree,
I usually look up the activity in transaction ST03N (Workload analysis). In most systems the standard activity statistics are available for up to three months. You can extend the period of course, see this [thread|ST03N Data; for further details.
Once in the transaction, switch to expert mode. Under Workload node, expand 'Total'. Double click on the desired range you want to analyze. Switch to 'User Data' tab in the right window and in the lower left pane under 'Analysis View', double click 'Transaction Profile'.
The # of steps roughly estimates how many times a particular transaction has been executed.
Best regards,
Asim -
Searching program for smartform
Hello Expert
How can I seach a program for smartform zxyz
Eg VA01 enter the order no and all the relavent data
and when enter the output will display the the smartform zxyz
Thanks
MontoWell Atish and Experts
Thanks for your suggestion, I can see the program name also in smarform
and clicking the function /bcdwb/sf00000053 when double click i can see my smartform name as FORM TYPE TDSFNAME VALUE 'Z_DELIVERY_NOTE',
(Note: Z_delivery_note is a smartform)
Now I have 2 logs for Quality Assurance , currently I can one logo .
but management need only those log to be display with the condition of logo to be display when the order type = ZOR (Sales order)
Sales organization = 'OMAN'
Division = 11
sales ofice = TWMB
then the DNV logo should display
esle
SAI logo should display at the bottom
So how can Write a condition to display the logo or is there any way
regards
Monto
FUNCTION /1BCDWB/SF00000053.
""Global interface:
*" IMPORTING
*" VALUE(ARCHIVE_INDEX) TYPE TOA_DARA OPTIONAL
*" VALUE(ARCHIVE_INDEX_TAB) TYPE TSFDARA OPTIONAL
*" VALUE(ARCHIVE_PARAMETERS) TYPE ARC_PARAMS OPTIONAL
*" VALUE(CONTROL_PARAMETERS) TYPE SSFCTRLOP OPTIONAL
*" VALUE(MAIL_APPL_OBJ) TYPE SWOTOBJID OPTIONAL
*" VALUE(MAIL_RECIPIENT) TYPE SWOTOBJID OPTIONAL
*" VALUE(MAIL_SENDER) TYPE SWOTOBJID OPTIONAL
*" VALUE(OUTPUT_OPTIONS) TYPE SSFCOMPOP OPTIONAL
*" VALUE(USER_SETTINGS) TYPE TDBOOL DEFAULT 'X'
*" REFERENCE(IS_DLV_DELNOTE) TYPE LEDLV_DELNOTE
*" EXPORTING
*" VALUE(DOCUMENT_OUTPUT_INFO) TYPE SSFCRESPD
*" VALUE(JOB_OUTPUT_INFO) TYPE SSFCRESCL
*" VALUE(JOB_OUTPUT_OPTIONS) TYPE SSFCRESOP
*" EXCEPTIONS
*" FORMATTING_ERROR
*" INTERNAL_ERROR
*" SEND_ERROR
*" USER_CANCELED
DATA: %INPUT TYPE SSFCOMPIN,
%RESULT_OP TYPE SSFCRESOP,
%RESULT_PD TYPE SSFCRESPD,
%RESULT_CL TYPE SSFCRESCL,
%TABDEF LIKE LINE OF %TABDEFS,
%ARCTAB TYPE TSFDARA,
BEGIN OF %FULLNAME,
FORM TYPE TDSFNAME VALUE 'Z_DELIVERY_NOTE',
VARI TYPE TDVARIANT,
ACTV TYPE TDBOOL VALUE 'X',
END OF %FULLNAME.
TYPES: T_XDF_ELEM(255) TYPE C,
T_XDF_ATTR(255) TYPE C.
DATA: %IMPORT_PARAMETER TYPE TABLE OF RSIMP WITH HEADER LINE,
%CHANGING_PARAMETER TYPE TABLE OF RSCHA WITH HEADER LINE,
%TABLES_PARAMETER TYPE TABLE OF RSTBL WITH HEADER LINE,
%EXPORT_PARAMETER TYPE TABLE OF RSEXP WITH HEADER LINE,
%EXCEPTION_LIST TYPE TABLE OF RSEXC WITH HEADER LINE.
DATA: %XDF_TABLE TYPE TSFIXML,
%XDF_LENGTH TYPE I.
DATA: %XDF_DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,
%XDF_PARAMETER TYPE REF TO IF_IXML_ELEMENT,
%L_NAME TYPE STRING,
%L_VALUE TYPE STRING,
%L_OBJECT TYPE STRING,
%L_DATE TYPE STRING,
%L_TIME TYPE STRING,
%L_FLAT TYPE C,
%RC TYPE SY-SUBRC.
FIELD-SYMBOLS: <%DATA_OBJECT> TYPE ANY.
CLASS CL_IXML DEFINITION LOAD.
CONSTANTS: %C_XDF_ROOT_ELEMENT TYPE T_XDF_ELEM VALUE 'XDF',
%C_XDF_ATTR_TYPE TYPE T_XDF_ATTR VALUE 'TYPE',
%C_XDF_ATTR_TIMESTAMP TYPE T_XDF_ATTR VALUE 'TIMESTAMP',
%C_XDF_ATTR_OBJ TYPE T_XDF_ATTR VALUE 'OBJECT'.
DATA: %XDF_FACTORY TYPE REF TO IF_IXML,
%XDF_ROOT_ELEMENT TYPE REF TO IF_IXML_ELEMENT.
DATA: %L_GETSTATE TYPE DDTYPEGET,
%L_TYPE TYPE DDTYPEKIND,
%L_TYPE_NAME TYPE TYPENAME,
%L_TYPE_CH LIKE RS38L-IMPORT_TYP,
%L_DDIC_OBJ TYPE DDTYPES OCCURS 0 WITH HEADER LINE,
%L_DD02L_STATE TYPE DD02L OCCURS 0 WITH HEADER LINE,
%L_DD04L_STATE TYPE DD04L OCCURS 0 WITH HEADER LINE,
%L_DD40L_STATE TYPE DD40L OCCURS 0 WITH HEADER LINE,
%L_XMLOUTPUT TYPE SSFXMLOUT,
%L_SFSY TYPE SFSY.
TYPE-POOLS: ABAP.
DATA: %XDF2_IXML TYPE REF TO IF_IXML,
%XDF2_DOCUMENT TYPE REF TO IF_IXML_DOCUMENT,
%XDF2_SRC_OBJECTS TYPE ABAP_TRANS_SRCBIND_TAB,
%XDF2_SRC_OBJECT LIKE LINE OF %XDF2_SRC_OBJECTS.
DEFINE XDF2_APPEND_SRC_OBJECT.
%XDF2_SRC_OBJECT-NAME = '&1'.
TRANSLATE %XDF2_SRC_OBJECT-NAME TO UPPER CASE.
GET REFERENCE OF &2 INTO %XDF2_SRC_OBJECT-VALUE.
APPEND %XDF2_SRC_OBJECT TO %XDF2_SRC_OBJECTS.
END-OF-DEFINITION.
DEFINE XDF_GET_DDIC_INFO.
CLEAR %L_DDIC_OBJ.
CLEAR %L_DDIC_OBJ.
IF NOT &2 IS INITIAL.
%L_TYPE_NAME = &2.
ELSEIF NOT &1-TYP IS INITIAL.
%L_TYPE_NAME = &1-TYP.
ELSEIF NOT &1-LINE_OF IS INITIAL.
%L_TYPE_NAME = &1-LINE_OF.
ELSEIF NOT &1-TABLE_OF IS INITIAL.
%L_TYPE_NAME = &1-TABLE_OF.
ELSE.
CLEAR %L_TYPE_NAME.
ENDIF.
CALL FUNCTION 'DDIF_TYPEINFO_GET'
EXPORTING TYPENAME = %L_TYPE_NAME
IMPORTING TYPEKIND = %L_TYPE.
%L_DDIC_OBJ-TYPENAME = %L_TYPE_NAME.
%L_DDIC_OBJ-TYPEKIND = %L_TYPE.
IF NOT %L_DDIC_OBJ IS INITIAL.
COLLECT %L_DDIC_OBJ.
ENDIF.
END-OF-DEFINITION.
DEFINE XDF_CREATE_DATA_STREAM.
CLEAR: %L_OBJECT, %L_DATE, %L_TIME, %L_NAME, %L_TYPE_NAME,
%L_VALUE.
IF &3 = 'T'.
IF NOT &2 IS INITIAL.
%L_TYPE_NAME = &2.
ELSEIF NOT &1-TYP IS INITIAL.
%L_TYPE_NAME = &1-TYP.
ENDIF.
IF NOT %L_TYPE_NAME IS INITIAL.
%L_TYPE_CH = %L_TYPE_NAME.
CALL FUNCTION 'RS_TYPE_EXISTENCE_CHECK'
EXPORTING
TYPE = %L_TYPE_CH
IMPORTING
STRUCTURE_IS_FLAT = %L_FLAT
EXCEPTIONS
OTHERS = 1.
ENDIF.
IF %L_FLAT NE 'X'.
CONCATENATE &1-PARAMETER '[]' INTO %L_NAME.
ELSE.
%L_NAME = &1-PARAMETER.
ENDIF.
ELSE.
%L_NAME = &1-PARAMETER.
ENDIF.
IF NOT &2 IS INITIAL.
ASSIGN (%L_NAME) TO <%DATA_OBJECT>
CASTING TYPE (&2).
%L_TYPE_NAME = &2.
ELSEIF NOT &1-TYP IS INITIAL.
ASSIGN (%L_NAME) TO <%DATA_OBJECT>
CASTING TYPE (&1-TYP).
%L_TYPE_NAME = &1-TYP.
ELSEIF NOT &1-LINE_OF IS INITIAL.
ASSIGN (%L_NAME) TO <%DATA_OBJECT>.
%L_TYPE_NAME = &1-LINE_OF.
ELSEIF NOT &1-TABLE_OF IS INITIAL.
ASSIGN (%L_NAME) TO <%DATA_OBJECT>.
%L_TYPE_NAME = &1-TABLE_OF.
ELSE.
ASSIGN (%L_NAME) TO <%DATA_OBJECT>.
CLEAR %L_TYPE_NAME.
ENDIF.
IF &3 EQ 'T'.
%L_NAME = &1-PARAMETER.
ENDIF.
CALL FUNCTION 'SDIXML_DATA_TO_DOM'
EXPORTING
NAME = %L_NAME
DATAOBJECT = <%DATA_OBJECT>
IMPORTING
DATA_AS_DOM = %XDF_PARAMETER
CHANGING
DOCUMENT = %XDF_DOCUMENT
EXCEPTIONS
OTHERS = 1.
%L_NAME = %C_XDF_ATTR_TYPE.
%L_VALUE = %L_TYPE_NAME.
CALL METHOD %XDF_PARAMETER->SET_ATTRIBUTE
EXPORTING NAME = %L_NAME
VALUE = %L_VALUE
RECEIVING RVAL = %RC.
CLEAR %L_DDIC_OBJ.
READ TABLE %L_DDIC_OBJ WITH KEY TYPENAME = %L_TYPE_NAME.
CASE %L_DDIC_OBJ-TYPEKIND.
WHEN 'S'.
READ TABLE %L_DD02L_STATE WITH KEY TABNAME = &1-TYP.
%L_DATE = %L_DD02L_STATE-AS4DATE.
%L_TIME = %L_DD02L_STATE-AS4TIME.
%L_OBJECT = 'TABL'.
WHEN 'E'. " data elements
READ TABLE %L_DD04L_STATE WITH KEY ROLLNAME = &1-TYP.
%L_DATE = %L_DD04L_STATE-AS4DATE.
%L_TIME = %L_DD04L_STATE-AS4TIME.
%L_OBJECT = 'DTEL'.
WHEN 'L'. " table types
READ TABLE %L_DD40L_STATE WITH KEY TYPENAME = &1-TYP.
%L_DATE = %L_DD40L_STATE-AS4DATE.
%L_TIME = %L_DD40L_STATE-AS4TIME.
%L_OBJECT = 'TTYP'.
WHEN OTHERS.
CLEAR: %L_DATE, %L_TIME, %L_OBJECT.
ENDCASE.
%L_NAME = %C_XDF_ATTR_OBJ.
CALL METHOD %XDF_PARAMETER->SET_ATTRIBUTE
EXPORTING NAME = %L_NAME
VALUE = %L_OBJECT
RECEIVING RVAL = %RC.
%L_NAME = %C_XDF_ATTR_TIMESTAMP.
CONCATENATE %L_DATE %L_TIME INTO %L_VALUE.
CALL METHOD %XDF_PARAMETER->SET_ATTRIBUTE
EXPORTING NAME = %L_NAME
VALUE = %L_VALUE
RECEIVING RVAL = %RC.
CALL METHOD %XDF_ROOT_ELEMENT->APPEND_CHILD
EXPORTING NEW_CHILD = %XDF_PARAMETER
RECEIVING RVAL = %RC.
CHECK %RC = 0.
END-OF-DEFINITION.
CLEAR DOCUMENT_OUTPUT_INFO.
CLEAR JOB_OUTPUT_INFO.
CLEAR JOB_OUTPUT_OPTIONS.
%L_SFSY = SFSY.
CLEAR SFSY.
SFSY-PAGE = %L_SFSY-PAGE.
SFSY-FORMPAGES = %L_SFSY-FORMPAGES.
SFSY-JOBPAGES = %L_SFSY-JOBPAGES.
SFSY-XDF = %L_SFSY-XDF.
SFSY-XDF2 = %L_SFSY-XDF2.
CLEAR INTSFSY.
IF CONTROL_PARAMETERS-NO_OPEN = SPACE.
CALL FUNCTION 'SSF_CREATE_COMPOSER_INPUT'
EXPORTING
ARCHIVE_PARAMETERS = ARCHIVE_PARAMETERS
USER_SETTINGS = USER_SETTINGS
MAIL_SENDER = MAIL_SENDER
MAIL_RECIPIENT = MAIL_RECIPIENT
MAIL_APPL_OBJ = MAIL_APPL_OBJ
OUTPUT_OPTIONS = OUTPUT_OPTIONS
CONTROL_PARAMETERS = CONTROL_PARAMETERS
IMPORTING
INPUT = %INPUT.
IF OUTPUT_OPTIONS-XSFCMODE = SPACE.
%INPUT-XSF = ' '.
%INPUT-XSFOUTMODE = ' '.
%INPUT-XSFOUTDEV = ' '.
%INPUT-XSFACTION = ' '.
%INPUT-XSFFORMAT = ' '.
ENDIF.
CALL FUNCTION 'SSFCOMP_OPEN'
EXPORTING INPUT = %INPUT
IMPORTING RESULT = %RESULT_OP
EXCEPTIONS OTHERS = 1.
IF SY-SUBRC <> 0.
%VARIANT = SPACE.
PERFORM %RAISE.
ENDIF.
JOB_OUTPUT_OPTIONS = %RESULT_OP.
ENDIF.
IF SFSY-XDF = 'X'.
CALL FUNCTION 'FUNCTION_IMPORT_INTERFACE'
EXPORTING
FUNCNAME = '/1BCDWB/SF00000053'
INACTIVE_VERSION = SPACE
TABLES
IMPORT_PARAMETER = %IMPORT_PARAMETER
CHANGING_PARAMETER = %CHANGING_PARAMETER
TABLES_PARAMETER = %TABLES_PARAMETER
EXPORT_PARAMETER = %EXPORT_PARAMETER
EXCEPTION_LIST = %EXCEPTION_LIST
EXCEPTIONS
OTHERS = 1.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
%L_GETSTATE-TBHD = %L_GETSTATE-TBFD = %L_GETSTATE-DTEL = 'X'.
%L_GETSTATE-TTHD = %L_GETSTATE-TTFD = 'X'.
LOOP AT %IMPORT_PARAMETER.
XDF_GET_DDIC_INFO %IMPORT_PARAMETER
%IMPORT_PARAMETER-DBFIELD.
ENDLOOP.
LOOP AT %CHANGING_PARAMETER.
XDF_GET_DDIC_INFO %CHANGING_PARAMETER
%CHANGING_PARAMETER-DBFIELD.
ENDLOOP.
LOOP AT %TABLES_PARAMETER.
XDF_GET_DDIC_INFO %TABLES_PARAMETER
%TABLES_PARAMETER-DBSTRUCT.
ENDLOOP.
CALL FUNCTION 'DD_TYPEINFO_GET'
EXPORTING GETSTATE = %L_GETSTATE
TABLES DDTYPES_TAB = %L_DDIC_OBJ[]
DD02L_TAB = %L_DD02L_STATE[]
DD04L_TAB = %L_DD04L_STATE[]
DD40L_TAB = %L_DD40L_STATE[].
%XDF_FACTORY = CL_IXML=>CREATE( ).
%XDF_DOCUMENT = %XDF_FACTORY->CREATE_DOCUMENT( ).
%L_NAME = %C_XDF_ROOT_ELEMENT.
%XDF_ROOT_ELEMENT
= %XDF_DOCUMENT->CREATE_ELEMENT( NAME = %L_NAME ).
CALL METHOD %XDF_DOCUMENT->APPEND_CHILD
EXPORTING NEW_CHILD = %XDF_ROOT_ELEMENT
RECEIVING RVAL = %RC.
CHECK %RC = 0.
LOOP AT %IMPORT_PARAMETER.
XDF_CREATE_DATA_STREAM %IMPORT_PARAMETER
%IMPORT_PARAMETER-DBFIELD 'I'.
ENDLOOP.
LOOP AT %CHANGING_PARAMETER.
XDF_CREATE_DATA_STREAM %CHANGING_PARAMETER
%CHANGING_PARAMETER-DBFIELD 'C'.
ENDLOOP.
LOOP AT %TABLES_PARAMETER.
XDF_CREATE_DATA_STREAM %TABLES_PARAMETER
%TABLES_PARAMETER-DBSTRUCT 'T'.
ENDLOOP.
CALL FUNCTION 'SSFCOMP_XDF_OUTPUT'
EXPORTING DOCUMENT = %XDF_DOCUMENT
EXCEPTIONS OTHERS = 1.
ELSEIF SFSY-XDF2 = 'X'.
%XDF2_IXML = CL_IXML=>CREATE( ).
%XDF2_DOCUMENT = %XDF2_IXML->CREATE_DOCUMENT( ).
XDF2_APPEND_SRC_OBJECT ARCHIVE_INDEX ARCHIVE_INDEX.
XDF2_APPEND_SRC_OBJECT ARCHIVE_INDEX_TAB ARCHIVE_INDEX_TAB.
XDF2_APPEND_SRC_OBJECT ARCHIVE_PARAMETERS ARCHIVE_PARAMETERS.
XDF2_APPEND_SRC_OBJECT CONTROL_PARAMETERS CONTROL_PARAMETERS.
XDF2_APPEND_SRC_OBJECT MAIL_APPL_OBJ MAIL_APPL_OBJ.
XDF2_APPEND_SRC_OBJECT MAIL_RECIPIENT MAIL_RECIPIENT.
XDF2_APPEND_SRC_OBJECT MAIL_SENDER MAIL_SENDER.
XDF2_APPEND_SRC_OBJECT OUTPUT_OPTIONS OUTPUT_OPTIONS.
XDF2_APPEND_SRC_OBJECT USER_SETTINGS USER_SETTINGS.
XDF2_APPEND_SRC_OBJECT IS_DLV_DELNOTE IS_DLV_DELNOTE.
XDF2_APPEND_SRC_OBJECT JOB_OUTPUT_INFO JOB_OUTPUT_INFO.
CALL TRANSFORMATION ID
SOURCE (%XDF2_SRC_OBJECTS)
RESULT XML %XDF2_DOCUMENT.
CALL FUNCTION 'SSFCOMP_XDF2_OUTPUT'
EXPORTING
DOCUMENT = %XDF2_DOCUMENT
EXCEPTIONS
OTHERS = 1.
ELSE.
%FULLNAME-VARI = %VARIANT.
%VARIANT = SPACE.
IF %HEADER IS INITIAL.
IMPORT HEADER TO %HEADER
REFTAB TO %REFTAB
DOCSTRUC TO %DOCSTRUC
TABDEF TO %TABDEFS
FROM DATABASE STXFCONTR(SF) ID %FULLNAME.
IF SY-SUBRC <> 0.
CALL FUNCTION 'SSFRT_SET_ERROR_PARAMETERS'
EXPORTING I_FORM = 'Z_DELIVERY_NOTE'.
CALL FUNCTION 'SSFRT_WRITE_ERROR'
EXPORTING I_ERRNUMBER = SSF_ERR_NO_RUNTIME_OBJECT
I_MSGID = 'SSFCOMPOSER'
I_MSGNO = '002'
I_MSGV1 = 'Z_DELIVERY_NOTE'.
PERFORM %RAISE.
ENDIF.
SELECT SINGLE SDATE STIME FROM D010SINF
INTO (%HEADER-SDATE, %HEADER-STIME)
WHERE PROG = '/1BCDWB/SAPLSF00000053'
AND R3STATE = 'A'.
IF SY-SUBRC <> 0.
CLEAR: %HEADER-SDATE,
%HEADER-STIME.
ENDIF.
ENDIF.
LOOP AT %TABDEFS INTO %TABDEF.
CALL FUNCTION 'SSFCOMP_TABLE_DEFINITION'
EXPORTING CPI = %HEADER-CPI
LPI = %HEADER-LPI
CHANGING TABDEF = %TABDEF
EXCEPTIONS OTHERS = 1.
IF SY-SUBRC <> 0. PERFORM %RAISE. ENDIF.
ENDLOOP.
CALL FUNCTION 'SSFRT_SET_REFERENCES'
EXPORTING I_REFTAB = %REFTAB .
CALL FUNCTION 'SSFRT_SET_LANGUAGES'
EXPORTING I_CONTROL_PARAMETERS = CONTROL_PARAMETERS
I_MASTERLANGUAGE = 'E'
I_THRULANG = ' '
I_INSTALL_LANG = ' '
IMPORTING O_LANGUAGES = %LANGUAGES.
%HEADER-LANGU = %LANGUAGES-LANGU1.
%WEXIT = SPACE.
PERFORM %GLOBAL_CLEAR.
PERFORM %GLOBAL_INIT.
CLEAR %ARCTAB.
IF ARCHIVE_INDEX_TAB[] IS INITIAL.
APPEND ARCHIVE_INDEX TO %ARCTAB.
ELSE.
%ARCTAB = ARCHIVE_INDEX_TAB.
ENDIF.
CALL FUNCTION 'SSFCOMP_PROCESS_DOCUMENT'
EXPORTING HEADER = %HEADER
DOCSTRUC = %DOCSTRUC
STARTPAGE = CONTROL_PARAMETERS-STARTPAGE
ARCHIV_INDEX_TAB = %ARCTAB
MAIL_APPL_OBJECT = MAIL_APPL_OBJ
IMPORTING RESULT = %RESULT_PD
EXCEPTIONS OTHERS = 1.
IF SY-SUBRC <> 0. PERFORM %RAISE. ENDIF.
DOCUMENT_OUTPUT_INFO = %RESULT_PD.
ENDIF.
IF CONTROL_PARAMETERS-NO_CLOSE = SPACE.
CALL FUNCTION 'SSFCOMP_CLOSE'
IMPORTING RESULT = %RESULT_CL
EXCEPTIONS OTHERS = 1.
IF SY-SUBRC <> 0. PERFORM %RAISE. ENDIF.
JOB_OUTPUT_INFO = %RESULT_CL.
ENDIF.
ENDFUNCTION. -
How to get Employee Picture in Smartforms
Hi Experts
Please help me out in getting employee picture in Smartforms
I have used the following FMs
1. HR_IMAGE_EXISTS
2. SCMS_DOC_URL_READ
By using these two FM i got the URL and i am able to get the picture in my Report Program,by using FM 'ISM_URL_SHOW'.
But Please tell how to get this picture in Smartform .
As i am generating Employee Biodata and in that i need employee Picture.
Please HELP me ....
Thanks & Regards
Shaveta PrabhakarHi,
U need pictures in smartforms for that just try this one I think so it will help full to u.
First Upload that picture in the se78 that photo must be in the bitmapformat(picture.bmp).
steps are:
goto se78>graphics->import--->it asks the file path here,fill those details
Then goto Smartform--->In which page u want to put the picture,
there click that page and goto Background picture,
here give the name of that picture and select the resolution and positin of the picture there.
Then u will get the picture in the output.
Regards,
Surya -
How to write driver programming in smartforms
hi Floks
<i>how to write driver programmig and how many types of driver programs available to trigger smartforms what are they . how to call the url in smartforms ?
help me out .thanking you ,</i>
with regards,
sureshHi
Try to get the Function module name from the smart form
how to find Driver program for a smartform
and now goto SE38 and create a progarm for calling the smartform
smartform driver program
Regards
Kathirve -
How to find my program in smartform
Hi Guys
There is a Zsmartform developed also created Z driver program for that. that is not yet assigned in NACE . How can i know the that form is called by driver program . i want know what is the driver program creted for that like finding in sap script
ravihi
If ur smartform attached to some Y or Z driver Program, then it is difficult to find out. Becauce FM for Smartform is changed at runtime. Our Y or Z Program get current FM for SmartForms by FM 'SSF_FUNCTION_MODULE_NAME'.
In table TPANR, U can find those smartforms & Program names which are attached with some output type.
And also look at the transaction code NACE, there you can find the Driver program and also the samrtform name under the output type
From NACE, Select the application type. Normally for Slaes we have V1, smae way you will have the application type, seelct that and press utput types, then select the Output type then press processing routines, then you will get the Program name and the layout name -
How to get 2nd line in smartforms using template
how to get 2nd line in smartforms main window using template. i have also defined loop .
if possible can you try with the TABLES..
Put one TABLE in your MAIN window
create table lines as per your requirment...consider all lines like 6 for header, 1 for main, 1 for total
Now, you will find three section under the tables: header, main, footer...
in header section, create a table line, assign one of the proper lines from the line types.. repeat for your all lines.
in main section, you can access your data form the loop.
the footer secion will be called, just after the main will be finished.
Regards,
Naimesh Patel -
Hi..how we enter standard text for smartform using include text
hi
guru
..how we enter standard text for smartform using include text..
i know only using so10 we write text..
in smartform it asking text-object
text-id,
so what values we should give to get textHi,
Do u want to print Standard Text or the Texts that are maintained at the Transaction level.
If it is standard text , then u use text id as ST or if it is Texts that are maintained at the Transaction level then u have to go to that specific transaction and check for that text , then go to text editor ,in the goto menu u have header data where u get the Text id , text name.... , use them in ur smartform in the INCLUDE text.
Further u have the option of text modules in smartforms which act as standard texts, so if u r going for creation of standard texts then its better to use text modules.
Regards,
Shafivullah Mohammad
Maybe you are looking for
-
Cannon Rebel XS EOS CR2 files won't open in CS6
My photoshop is completely up to date, my RAW plug-in is up to date, and I even attempted to download the DNG converter all to no avail. No matter what I try my CR2 images won't open in anything. My camera is listed as one of the supported cameras. I
-
I have had iTunes for along time and now for the past 3 days I can't seem to log on to my jukebox. Everytime I go to log on from my short cut it reads The itunes application could not be opened. An unknown error occurred (-69). Please help me, I have
-
I made a fillable form in Adobe Live Cycle - The problem I'm having is that when I share the form with someone they are unable to save the fillable version of the form once information has been put in - I need them to be able to save the fillable for
-
while trying to close a kindle app on my iphone I changed to background in that app to black with white letters and cannot get it to change back. Invert colors is off
-
How to send GOS document attached to PO for Printing
Hi, My requirement is as below. My user is creating attachment to the Purchase Order using GOS. For purchase order we have created one Z smart from. So when ever the user print the from for PO, along with the PO form my client want to print all the a