How i can display i_tab data in smartform as required

hi all
      i have tried a lot but not able to make logic for displaying data frm i_tab to SF as required ,
     my requirement is , i have data in i_tab as given below
field 1, 2,3,4,  are TRNTYP   CHAPID   MATNR  MAKTX  OF J_1IEXCDTL respectivly.
GRPO     8707.00   0025F     AC92 CON ROD FORGING.
ARE1               1315F     CONNECTING ROD      
                   1315F     CONNECTING ROD      
                   1315F     CONNECTING ROD      
DLFC               1315F     CONNECTING ROD      
                   1315F     CONNECTING ROD      
                   1315F     CONNECTING ROD      
                   1315F     CONNECTING ROD      
                   1315F     CONNECTING ROD      
                   1315F     CONNECTING ROD      
                   1315F     CONNECTING ROD      
       now i want to display this data on SF like as :
  <b>discription of 8700.00
  export against = ARE1
              1315F              CONNECTING ROD      
              1315F              CONNECTING ROD      
              1315F              CONNECTING ROD      </b>
    Way to Display :-
           1.      Chapter id in one single line
           2.      then if TRNTYP is ARE1 or ARE3 it should display in second single
                    line. <b><not any other TRNTYP></b>
           3.      then field no. 3 & 4 of i_tab should come based on TRNTYP
   please guide me and help me , if possible help me with dummy code example
  or if not then help me to make logic by give hint,
                  <b>i have all related data in one single i_tab</b>
Message was edited by: SACHIN
        sachin sharma

Hi
see this and do accordingly
How to create a New smartfrom, it is having step by step procedure
http://sap.niraj.tripod.com/id67.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
Here is the procedure
1. Create a new smartforms
Transaction 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.
endif.
Smartform
you can check this link here you can see the steps and you can do it the same by looking at it..
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
SMARTFORMS STEPS.
1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.
2. Create Table type(t_struct) of stracture in se11.
3. In your program declare Internal table(Itab) type table of structure(struct).
4. Define work area(wa) like line of internal table.
5. Open Tcode Smartforms
6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).
7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).
8. In form pages and window, create Page node by default Page1 is available.
9. In page node you can create numbers of secondary window. But in form there is only one Main window.
10. By right click on page you can create windows or Go to Edit, Node, Create.
11. After creating the window right click on window create table for displaying the data that you are passing through internal table.
12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).
13. In table there are three areas Header, Main Area, Footer.
14. Right click on the Main area create table line by default line type1 is there select it.
15. Divide line into cells according to your need then for each cell create Text node.
16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.
17. Save form and activate it.
18. Then go to Environment, function module name, there you get the name of function module copy it.
19. In your program call the function module that you have copied from your form.
20. In your program in exporting parameter of function pass the internal table(itab).
SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.
SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can
configure forms with data from an SAP System for the relevant business processes.
To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.
You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.
You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.
SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.
SAP Smart Forms also support postage optimizing.
Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C
What Transaction to start SAP Smart Forms?
Execute transaction SMARTFORMS to start SAP Smart Forms.
Key Benefits of SAP Smart Forms:
SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time.
You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.
To make changes, use Drag & Drop, Copy & Paste, and select different attributes.
These actions do not include writing of coding lines or using a Script language.
Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one.
For Web publishing, the system provides a generated XML output of the processed form.
Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.
Reward if useful
Anji

Similar Messages

  • How i can Catch perticular data from internet and update SAP R/3 data?

    Hi All,
    I want to catch data from internet and want to update those data into SAP R/3 database. So how i can catch those data ?. what will be format of data to update SAP R/3 database?

    Hi,
    You need to create your own BSP pages which would be displayed on internet/HTML.
    Transaction SE80 => Select BSP application.
    Best regards,
    Prashant

  • How we can move BPC data to PCM?

    Hi Experts,
    I saw an article
    Integrating PCM 7.5 with BW
    for moving data from BW to PCM.
    But it seems to discuss only one way of data transferring which is PCM to BW since it introduce DataBridge in PCM.
    I have a question regarding the way of data transferring.
    How we can move BPC data to PCM? BPC is on BW, I think DTP(Data Transfer Package) in BW can make it happen, but needs your opinion.
    Thanks in advance,
    Regards,
    YH Seo

    If you use BPC and PCM 7.5 or later, you can use the Financial Information Management (FIM) application to connect the EPM solutions.  Some colleagues and myself have shared a How-to-Guide on this topic.  The link is [here|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50eb313b-aaed-2d10-3894-f3a5349e7ad7].
    Best regards,
    [Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
    SAP Labs, LLC
    BusinessObjects Division
    Americas Customer Solutions Adoption (CSA) team

  • How we can display two list if not using blocked alv ,not scr painter

    how we can display two list if not using blocked alv ,not scr painter

    1. Once the cell number/service on the 3GS is transfered to the 5, the 3S will become basically an iPod touch until a new sim is in place, correct? We can still use wi-fi and the apps on the phone, and still be able to sync to iTunes, correct? iOS has been upgraded to 6.
    1a. With a new Sim, any issue with losing any data/apps on the phone? I dont' think so.
    1. Yes. without a sim it has no service, but all other features should be useable normally.
    1.a Nope, Data and Apps are independent of the Sim.
    2. Once the 5 is activated on the new carrier, how do I share the apps within iTunes? Is it as easy as using iCloud (which we haven't "activated" yet) and/or plugging both phones into iTunes and transferring between devices (authorizing both)? Photos? There are photos on the 3S that we will need on the 5.
    2. As long as both Phones use the same Apple ID, the applications can be synced to each through iTunes. Also any downloads on one phone should appear in the other. Again as long as both phones are using the same Apple ID.
    3. Reverse order for new apps purchased (understand that not all the iphone 5 apps will work on the 3GS)?
    3. If they can be run on the iPhone3GS they should be synced automatically.
    4. My husband also has a new iPad, any complications there with three devices? To date, he has not "shared" apps between his 3S and the iPad. He does not have iCloud set up, but plugs into his computer to backup and transfer photos. 
    4. If all 3 Devices share the same Apple ID all should be synced. 
    As a word of warning, if all 3 devices use the same Apple ID, messages recieved using iMessage will appear on all 3 devices.
    And Conctacts may get overwritten if synced to iCloud (thogh you say he doesn't have one), or merged together.

  • How I can see the data of my message after processing?

    Hi guys,
    My scenario is XI -> R/3 (asynchronous) using ABAP Proxy.
    When a try to send a message the flag code is ok and the message enters in R/3 inbound queue, so it means that everything ok!
    I want to know how I can see my data in queue or better how it enters in proxy and how I can see? In proxy method I put a break point... but can't stop there!!!
    What I need to do to make a little test and verify that really works?
    Anybody could help?
    Thanks in advance,
    Ricardo.

    Hi Ricardo
    If you want to do Debug Asyn Inbound proxy. Do the following steps.
    1. Get the Queue-Id from MONI.
    2. Deregister the Queue for your message (SMQR).
    3. Now resend the message. The message will be stopped in the Deregistered Queue.
    4. Start Transaction SMQ2 and select your specific Queue. Double clicking will take you to the detailed level.
    5. Press F8 to start the Debugger. And now you can debug the whole Proxy mehtod for Inboud proxy method.
    Check the file 'How to Debug XI Applications' for more information.
    https://websmp204.sap-ag.de/~form/sapnet?_SHORTKEY=01200252310000071155&_SCENARIO=01100035870000000202
    Regards
    Paresh

  • I have an unlocked iphone 4s bought from apple. Will be in London and Paris and would like to know if how I can purchase a data plan while on vacaqtion

    I have an unlocked iphone 4s bought from apple. Will be in London and Paris and would like to know if how I can purchase a data plan while on vacaqtion

    Can I still use the phone in Boston when I move there?
    Only on a supported GSM carrier.
    Will there be networks I cant use?
    Yes. CDMA networks.
    As I understand it the 4S supports GSM and CDMA networks worldwide.
    No, you've misunderstood. The GSM iPhone you can buy in Ireland supports GSM networks only i.e. AT&T

  • HT201270 i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    i have just updated my old 3GS and now when i am on restore the window is comming up and asking for a password. i have not set up a password for restore, please help how i can restore my date???

    capriz wrote:
    i have just updated my old 3GS ...
    To what... iOS 7 is Not supported on the 3 GS

  • How we can upload the data through BDC for transaction J1ID

    Hi guru
    How w can upload the data for Transaction J1ID.In this we want to upload the data for Customer Excise details. I want to upload the data on behalf of Customer (KUNNR) becasue customer is a primary KEY. Table name: J_1IMOCUST
    Fields. 11 Fields.plz provide some code logic.
    KUNNR     J_1IEXCD     J_1IEXRN     J_1IEXRG     J_1IEXDI     J_1IEXCO     J_1ICSTNO     J_1ILSTNO     J_1IPANNO     J_1IEXCICU     J_1ISERN

    Hi,
    I dont see any difficulties in doing BDC upload for J1ID, You have to record by giving the New Entries button and then enter all the details of customers using table control technique.
    SEARCH SCN for Table Control in BDC
    Regards
    Karthik D

  • How we can automate the data loading from BI-BPC

    Dear  Guru's
    Thanks for watching this thread,my question is
                  How we can load the data from BI7.0 to BPC.My environment is SAP-BI 7.0 and BPC is 7.5 MS version and 2008SQL.
    How we can automate the data loading from  BI- BPC Ms version.Is manual flat file load is mandatory in ms version.
    Thanks in Advance,
    Srinivasan.

    Here are some options
    1) Use standars packages and schedule them :
        A) Openhub masterdata file into a flat file/ BPC App server  and Schedule the package - Import Master Data from a Data File and  other relevent packages.
    2 ) Using Custom Tasks in Custom Packages ( SSIS)
    Procedure
    From the Microsoft SQL Server Business Intelligence Developer Studio, open the Microsoft SSIS folder.
    Create a new package, or select an existing package to modify.
    Choose  Task  Register Custom Task .
    In the Task Location field, browse for the target .dll file.
    Note
    By default, the .dll files are stored in BPC/Websrvr/bin.
    End of the note.
    Enter a task description, select an appropriate icon, then click OK.
    Drag the icon to the designer window. Enter data as required.
    Save the package.

  • How we can see the data related to finance ??

    Hi Gurus,
    I have attend for one interview and faced one question is that how can we see the finance related data in r/3?
    they asked the same question.
    can you please let me know how we can see the data for perticular module like HR,FInance...
    Points 'll be assigned..
    Regards,
    Syam

    For Finance the standard datasources are
    0FI_GL_4
    0FI_AR_4
    0FI_AP_4
    Go to R/3 lbwe
    select these datasources
    click on manage
    you will get a window with fields. here in the right hand corner there is a drop down which giives table names
    OR
    Goto RSA3 and give the datasource name

  • Rescheduling of Maint order..(how we can postpone the date of maint order)

    Hi friends,
    I would like to know that how we can postpone the date of maint order.I am working on preventive maintenance plan.Let consider my maint plan is based on key date so that system is generated orders like for 90 dyas cycle time as below.
    10 jan
    10 feb
    10 mrach
    But suppose there is certain req.from sales dept. so production dept want to use the machine. So machine is not available on that day (10 jan) but it will be free after 2 days for maintenance .Then I want to know
    1.how i can shift the order date from 10 to 12 jan.
    2.What about the planning cycle? It remains constant as per system date or it will change proposed date automatically.
    Awaiting for reply..
    Thanks and regards,
    Pravin

    Hi,
    If automatic scheduling is active,
    In case of backward scheduling (default for preventive maintenance) change the the basic end date
    In case of forward scheduling change basic start date.when the order is saved order will be rescheduled automatically.
    You can avoid the shift of next mainteannce call by giving proper scheduling parameters in Maintenance plan.

  • How i can display default error message in alert window

    how i can display default error message in alert window
    i.e.,
    i have a text field with datatype Alpha
    if i am giving numbers.etc then it is displaying
    FRM-50001: Acceptable characters are a-z,A-z and space
    I want to display this message in alert window
    please tell how to do this

    In the on-error trigger :
    Capture error_code and error_text in a variable.
    Set the alert title to something meaningful.
    Set the alert message equal to the captured error information.
    Display the alert.
    declare
    v_alert varchar2(100) := 'ERROR' ; -- name of alert to use
    v_title varchar2(100) := 'Error !' ; -- text to display as title
    v_msg varchar2(200) := error_code || ':' || error_text; -- message to display
    v_btn number ; -- button pressed
    begin
    set_alert_property( v_alert, TITLE, v_title );
    set_alert_property( v_alert, ALERT_MESSAGE_TEXT, v_msg );
    v_btn := show_alert( v_alert );
    end;
    ----------

  • How I can change Hollydays date in my calendar . In UAE -Fri-Sat it's Hollydays

    How I can change Hollydays date in my calendar . In UAE -Fri-Sat it's Hollydays

    Numbers & most apps, especially those from Apple, use the date format you have set in System Preferences > Language & Text > Region. You can then choose UK from the Region drop-down list. Mine says Custom because I've defined things further as in the second screenshot.

  • HT4859 does anyone have any idea how one can keep their data on iPad after leaving icloud as it appears that you loose all data when doing this...its killing me!!!

    does anyone have any idea how one can keep their data on iPad after leaving icloud as it appears that you loose all data when doing this...its killing me!!!

    rtilghman wrote:
    telling me to buy a new router is NOT a solution.
    And why not? Apple is selling these things like BigMacs. They can't make enough of them. You've been suffering since May because you refuse to get a decent router.
    Can you imagine if a company that makes a refrigerator told me that I needed to upgrade my electrical system to rectify a problem with their device? What kind of response IS that?!?!
    What if the problem with their device is that it requires a new-fangled "grounded" outlet and your circa 1890 house doesn't have grounded outlets. Would you refuse to purchase a $ 25 adapter on principle?

  • My IPhone need to restore, but I want to backup my data first. Itunes keep telling me you must restore this iphone before it can be used. How I can backup my data?

    My IPhone need to restore, but I want to backup my data first.
    Itunes keep telling me you must restore this iphone before it can be used. How I can backup my data?

    At this point it is too late. When you restore it will restore the backup made at the time of the last sync. And changes to the phone's content after that last sync will be lost.

Maybe you are looking for

  • How to interpolatin in java regular expression

    Hello, I am having a problem regarding variable interpotaion in java regex. i am having a pattern file . This is one of my Pattern from pattern file (\{NP_PP_[0-9]+\}|\{NP_B_[0-9]+\}|\{NP_P_[0-9]+\}|\{NP_[0-9]+\})[^{}]*PHOSphorylatable amino[^{}]*(\{

  • EngLab - Open source mathematical/engineering platform

    Hello all, I'm new to Archlinux and quite exited with it. Anyway, some colleagues of mine from the University and me have created an engineering platform for the Linux platform, although Windows builds are also available. If you like check it out, bu

  • Invoicing party change

    Hi all, My problem is like this: I have received the GR from XYZ Vendor. The entries was posted correctly with GR/IR Clearing. and made the PO for the same with no 1234. Now my user using the PO 1234 and changed the invoicing party in MIRO as ABC. Th

  • Need suggestions for proofreading online help files

    I have created online help docs off an on for many years... and have contemplated this issue several times and never come up with a really good answer. Right now, the product manager is tryiing to proof one of the online help files that i've COMPLETE

  • PDF preview: incorrect page count

    Hi there I've noticed since I've upgraded to CS5 that my PDF previews in Bridge do not always show the correct number of pages. It has happened that a four-page PDF displayed only the first two pages, and a single-page PDF showed up as having two pag