How can i create Header and items in SMART FORM

Hi Experts,
How can i create Header and items in SMART FORM in the below driver program.
_Header fields_
SELECT BUKRS BUDAT GJAHR CPUDT USNAM BLART BELNR XBLNR BLDAT WAERS KURSF
  FROM BKPF INTO CORRESPONDING FIELDS OF TABLE IT_HEAD WHERE BELNR IN S_BELNR AND BUDAT IN S_BUDAT AND GJAHR EQ S_GJAHR AND BUKRS EQ S_BUKRS AND CPUDT IN S_CPUDT AND USNAM IN S_USNAM.
Item firlds
SELECT BUZEI BSCHL SGTXT SHKZG KOSTL PRCTR WERKS WRBTR HKONT KUNNR ZFBDT FROM BSEG INTO CORRESPONDING FIELDS OF TABLE IT_ITEM
  FOR ALL ENTRIES IN  IT_HEAD WHERE BELNR = IT_HEAD-BELNR AND GJAHR = IT_HEAD-GJAHR AND BUKRS = IT_HEAD-BUKRS.
  LOOP AT IT_HEAD.
MOVE-CORRESPONDING IT_HEAD TO FINAL.
    LOOP AT IT_ITEM
    WHERE BELNR = IT_HEAD-BELNR.
      MOVE-CORRESPONDING IT_ITEM TO FINAL.
ENDLOOP.
ENDLOOP.
Regards,
Sreedhar.

for these internal tables you can pass some Identifier  for both tables.
in header file : IT_HEAD
IDENT   type  char10,
BUKRS type BUKRS,
BUDAT type BUDAT,  like
in header file :IT_ITEM
IDENT   type  char10,
BUZEI type BUZEI,
BSCHL type BSCHL,  like  in item data
you need to fille the  IDENT value like
IT_HEAD:
10 -- DE01-- 10.20.2009
20 -- CH01-- 10.20.2009
IT_ITEM
10 -- 1234-- KSCHL value  like all records
10 -- 2345-- KSCHL value  like all records
10 -- 6783-- KSCHL value  like all records
20 -- 3452-- 1KSCHL value  like all records
20 -- 4532-- KSCHL value  like all records
20 -- 4535-- KSCHL value  like all records
in smartform you need to create 2 tables.
or create
LOOP  with IT_HEAD
table with IT_HEAD
table with IT_ITEM
and put the condition for each table in  DATA tab where condtion  like IDENT = IT_HEAD-IDENT
in item table also INDENT = IT_ITEM-INDENT..

Similar Messages

  • How can i create a new item in the app "health"?

    how can i create a new item in the app "health"? I need a field for documentation of "Waist-to-height ratio", exactly for "circumference".
    It's a matter of common knowledge, that the Waist-to-height ratio (WHtR) has more significance then the Body-Mass-Index (BMI).

    If you mean you want to change a color of a calendar category or create a new one, you cannot do that, what is pre-loaded is what you get and cannot be edited.

  • How to find the header and item level status of a CRM contract ?

    Hi,
    Few questions
    A. How to find the header and item level status of a CRM contract ? My req is to select all the contract line items which are in CLOSED status.
    B. How to get the BPs associated with a contract ?
    Anyone have the list of CRM tables and the relation amongst them. Please mail me in [email protected]

    CRMD_ORDERADM_H     Contains the Header Information for a Business Transaction.
    Note:
    1.     It doesn’t store the Business Partner
           responsible for the transaction. To 
           get the Partner No, link it with
           CRM_ORDER_INDEX.
    2.     This table can be used for search
           based on the Object Id(Business
           Transaction No). 
    CRMD_CUSTOMER_H     Additional Site Details at the Header Level of a Business Transaction
    CRMD_LINK     Transaction GUID set for all the Business Transactions
    CRMD_ORDER_INDEX     Contains Header as well as Item details for a Business Transaction.
    Note:
    1.     It doesn’t store the Business 
          Transaction No (Object ID).
          To get the Business Transaction No  
          link the table with
          CRMD_ORDERADM_H
    2.   This table can be used for search
          based on the Partner No
    CRMD_ORDERADM_I     Stores the Item information for a Business Transaction. The scenarios where we have a Contract Header and within contract we have Line Items for the contract, this table can be useful.
    E.g. Service Contracts
    CRMD_CUSTOMER_I     Additional Site Details at the Item Level of a Service Contract
    Pl.reward points.......

  • I have a windows computer. How can I create apps and put them on itunes?

    I have a windows computer. How can I create apps and put them on itunes?

    You can't. The iOS SDK requires Mac OS X and an Intel Mac; Windows applications can't be put on either the iOS or Mac OS X App Stores.
    (82889)

  • How can i create PR and if there is some change in the PR due to wrong calc

    Dear all,
    I wanted to know how can i create PR, and is that simple? Ok, while creating PR, when i will come to know that stock entered here is less that the actual stock that was mentioned, but due to some error, how can i change it, how is that possible?

    1981,
    You have posted this question in the wrong forum.  Such topics are covered in the MM forum
    SAP ERP - Logistics Materials Management (SAP MM)
    You can easily create a new PR in ECC using transaction ME51N
    You can easily change an existing PR in ECC using transaction ME52N.
    Best Regards,
    DB49

  • How to upload the Header and Item texts

    Hi ,
    I need to upload the Header and Item texts , what is the process to upload.................................
    Regards,
    Raghunath.S

    hi,
    see the sample code.
    report ZVENDOR_BANK
           no standard page heading line-size 255.
    *-----tables declaration
    tables:lfa1,lfbk,t100.
    *-----data declaration
    data:begin of it_dummy occurs 0,
           dummy(100) type c,
         end of it_dummy.
    data:begin of it_lfa1 occurs 0,
           lifnr like lfa1-lifnr,
           ktokk like lfa1-lifnr,
           name1 like lfa1-name1,
           sortl like lfa1-sortl,
           land1 like lfa1-land1,
         end of it_lfa1,
         begin of it_lfbk occurs 0,
           lifnr like lfbk-lifnr,
           banks like lfbk-banks,
           bankl like lfbk-bankl,
           bankn like lfbk-bankn,
           koinh like lfbk-koinh,
         end of it_lfbk.
    data:bdcdata like bdcdata occurs 0 with header line.
    start-of-selection.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
      FILENAME = 'C:\Documents and Settings\Rvelagapudi\Desktop\vendor.txt'
         FILETYPE                      = 'ASC'
         HAS_FIELD_SEPARATOR           = '#'
        TABLES
          DATA_TAB                      = it_dummy
       EXCEPTIONS
         FILE_OPEN_ERROR               = 1
         FILE_READ_ERROR               = 2
         NO_BATCH                      = 3
         GUI_REFUSE_FILETRANSFER       = 4
         INVALID_TYPE                  = 5
         NO_AUTHORITY                  = 6
         UNKNOWN_ERROR                 = 7
         BAD_DATA_FORMAT               = 8
         HEADER_NOT_ALLOWED            = 9
         SEPARATOR_NOT_ALLOWED         = 10
         HEADER_TOO_LONG               = 11
         UNKNOWN_DP_ERROR              = 12
         ACCESS_DENIED                 = 13
         DP_OUT_OF_MEMORY              = 14
         DISK_FULL                     = 15
         DP_TIMEOUT                    = 16
         OTHERS                        = 17.
      loop at it_dummy.
        if it_dummy-dummy+0(1) = 'H'.
          it_lfa1-lifnr = it_dummy-dummy+1(4).
          it_lfa1-ktokk = it_dummy-dummy+5(4).
          it_lfa1-name1 = it_dummy-dummy+9(7).
          it_lfa1-sortl = it_dummy-dummy+16(2).
          it_lfa1-land1 = it_dummy-dummy+18(2).
          append it_lfa1.
        else.
          it_lfbk-lifnr = it_dummy-dummy+1(4).
          it_lfbk-banks = it_dummy-dummy+5(2).
          it_lfbk-bankl = it_dummy-dummy+7(8).
          it_lfbk-bankn = it_dummy-dummy+15(8).
          it_lfbk-koinh = it_dummy-dummy+23(4).
          append it_lfbk.
        endif.
      endloop.
      loop at it_lfa1.
        refresh bdcdata.
        perform bdc_dynpro      using 'SAPMF02K' '0100'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'RF02K-KTOKK'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'RF02K-LIFNR'
                                      it_lfa1-lifnr.
        perform bdc_field       using 'RF02K-KTOKK'
                                      it_lfa1-ktokk.
        perform bdc_dynpro      using 'SAPMF02K' '0110'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFA1-LAND1'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_field       using 'LFA1-NAME1'
                                      it_lfa1-name1.
        perform bdc_field       using 'LFA1-SORTL'
                                      it_lfa1-sortl.
        perform bdc_field       using 'LFA1-LAND1'
                                      it_lfa1-land1.
        perform bdc_dynpro      using 'SAPMF02K' '0120'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFA1-KUNNR'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '/00'.
        perform bdc_dynpro      using 'SAPMF02K' '0130'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFBK-KOINH(02)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=ENTR'.
        data:FNAM(20) TYPE C,
             IDX TYPE C.
        move 1 to idx.
        LOOP AT IT_lfbk WHERE LIFNR = IT_lfa1-LIFNR.
          CONCATENATE 'LFBK-BANKS(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-banks.
          CONCATENATE 'LFBK-BANKL(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-bankl.
          CONCATENATE 'LFBK-BANKN(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-bankn.
          CONCATENATE 'LFBK-KOINH(' IDX ')' INTO FNAM.
          perform bdc_field       using FNAM
                                        it_lfbk-koinh.
          IDX = IDX + 1.
        endloop.
        perform bdc_dynpro      using 'SAPMF02K' '0130'.
        perform bdc_field       using 'BDC_CURSOR'
                                      'LFBK-BANKS(01)'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=ENTR'.
        perform bdc_dynpro      using 'SAPLSPO1' '0300'.
        perform bdc_field       using 'BDC_OKCODE'
                                      '=YES'.
        call transaction 'XK01' using bdcdata mode 'A'.
      endloop.
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.                    "BDC_DYNPRO
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> SPACE.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.                    "BDC_FIELD

  • How can I create public AND private access with a wireless VPN router?

    I am thinking about getting one of the new pre-n wireless routers that has a builtin VPN.  I will need to have a private net for my office and a public net for my customers.  On the private side- my employees will need to access all network resources and servers etc.  On the public side, my customers just need to get to the Internet and maybe print on that side too.
    Both sides will be DHCP.
    Can I set this up with 1 device ro do I need 2?  How can I do this?  Any help is greatlu appreciated.
    Thanks all.
    Message Edited by Gman on 10-14-200607:08 PM

    The only safe way to do this is to creat user groups On your server and give specific assess to the users who log into the network.
    Using a single router , bifurcating a public from a private network is not possible.You will not be able to use the VPN since the users hav e to be connected to the VPN to log into your network.

  • How can I create a page item at a certain LEVEL within a layer?

    I mean, if I have one frame that I brought to the front, and one that I sent to the back, can I create an item that is between the two? Right now everything I create is automatically on top, and I have to do some scripting to figure out where the other items are at, and then step the new item back, back, back, etc. until I get to where I want, testing at every step to see if it's gone too far.
    I can't find a property I can set to move a page item directly to the place in the front-to-back order that I want.
    Am I missing something?

    Z-ordering is not maintained in scripting properties, but you can use methods. Let's assume topframe and newframe. You can then use newframe.sendToBack(topframe);. Note that this is distinct from newframe.sendToBack(), which sends it all the way back. Check the docs, there are also some requirements for co-parantage between topframe and newframe.

  • How can i create inputschedule and Reoprt in single work sheet???

    Hi experts,
    Can you please tell me how do i create input schedule and report in one single work sheet???
    Also please share How to guide of the same if you know.
    Regards,
    Charly

    Hi charly, your question is quite interesting, obviously using workbook options you can either set your workbook to an Input Schedule or Report.
    If you need to submit data, then obviously the workbook option has to be Input Schedule.
    assuming you are using EVDRE's which are updateable as long as the Current View permits and Input Schedule flag is set:
    If you define 'report' loosely as an area of the excel workSHEET which is read only, then you can lock the cells of the report area and use excels protect worksheet function.
    If you are using EV formulae to return data (such as evget, evsnd) then you can use the EVGET function to ensure data is only flowing one way.
    Hope this helps,
    Hiren

  • How can i create validation Checks in Online Adobe Form

    Hi Gurus
    i am trying to create Online Adobe form.how can i do the validation checks while the user enter the values in Adobe form (For Ex: lets take personnel Number if the end user enter the personnel number it must go and  check the Data base table , if its right personnel number then processes next value or if its not right personnel number then it must show the error message).  please help me.
    Thanks in Advance
    Edited by: Reddy on Nov 24, 2011 10:08 AM

    HI Reddy,
    I think you can use either  'Submit' button or  web service for the validation. When we use the web service then it will work in offline mode also(user has to be on intranet - either via remote connectivity using VPN or office network) .
    if you are going for 'Submit'  and If you want to validate the number when the user enter value, then write the code in 'Exit' event  .
    Write the below code in the  event.
    ContainerFoundation_JS.SendMessageToContainer(event.target, "submit", "", "", "", "");
    This code will trigger the submit event in the web Dynpro component.
    Hope this will helps you.
    Regards
    Shaira.

  • How can we create the Readmore link in XML form to opened  the KM folder

    Hi!
    I 'm working on XML form. I have the readmore link in the form . Nomorrally readmore will link to open the file only . however, I need the readmore link to opend the list of document folder in KMconten -> documents. How can we do? Is it possible.
    Thanks and best regards,
    Vimol

    Hi ,
    On the tool bar you have an option "Browser" which is next to "HTML Editor" .
    You know that for using these elements wo have to map them with Data Schema.
    Step by step
    1. In data Model Under Data Schema Add a child and name it Read_More.
    2. In the left hand corner ,click on tab Type and from the drop down select "rid"
    3.Click on the "Browser" from the toolbar (as told earlier) and drag and drop it on the form.
    4. Drag the Data schema which u have made(Read_more) and drop it on the browser on form. On right hand side u will se the mapping done.
    5.Click on the "Browser" which is there in the form and on the right hand side of the form u will see the property window.
    6.In property window change the value of action property to "Item Entry point"
    7. Repeat step 3 and 4 in Render and show form but using "label" nad not browser.
    Do not forget to add Save button in Edit Form.
    This will solve your problem.
    PS:Rewards Point Please.
    Regards,
    Naveen Gupta

  • How can I create webpages as PDF or Jpeg form for client to proof

    Hello All,
    I am doing a website for a client and need to send a proof to him at the end of the day.
    Is there a way to export the page with the actual pixel dimensions in a jpeg or PDF without publishing each time. I tried doing a screen capture (apple +shift +4) but if you have long vertical page you can't get the capture to scroll down.
    any other suggestions how I can export a single page as a graphic.
    J5

    Try Paparazzi@. It can make pdfs, jpgs and other image formats of your web pages even if they are too long to fit on the screen for a screenshot.
    OT

  • How can I create prefilled and editable PDF's on a Linux server with PHP?

    I can create PDF's with editable form fields (extended features?) and serve those to our users and I can pre-fill form fields with data from the database using FDF, but then the PDF throws an error and the end user can't fill out the remaining fields (in Reader, it still works in Pro).
    I've tried 2 open source approaches already, but the end result is either a fillable form or a pre-filled form. I can't seem to do both at the same time.
    I've looked around adobe.com and frankly there's just so much stuff there that isn't even applicable it's staggering. I am completely lost and resorting to asking a question on a forum. I've searched these forms (and others), but anything related to this problem have no answers. I'm sure there's a way to do it.
    If I try to set the PDF to fetch the FDF using a http post/submit (can I get it to do that when it loads?) I would still have to get an id number into the query string or object on a per document basis (some how?) and that means editing the PDF server side which breaks the structure which then throws the error on the client side and I'm right back at the beginning again.
    At this point, it looks like it's going to take less time to simply create the form in HTML with a unique CSS file for the print version using a PNG for visual elements instead of a PDF. Not a great way to go for printing, but it would only take a day to set up. The time to create new forms is the issue. I don't want to spend 8 hours creating new HTML forms when I can do a PDF in 2 hours. Is it more efficient to go with an Adobe solution or roll my own HTML version?
    All I want to do is help the users save some time by pre-filing part of the form so they can print it.
    Any advice?

    Ok, I hope someone can move this to the Adobe Reader for Android forum, where you will find the experts you need.

  • How can i create forward and back buttons for a dreamweaver slideshow?

    Hi
    I am an illustrator attempting to create a website in dreamweaver (basically it will be an online portfolio). I would like to have a box/slideshow with images of my work that someone can browse through by clicking 'next' and 'back' buttons. Does anyone know how to do this? I have been trying to find out how to do this for ages - i dont want to use flash if possible as i am worried about making the site too complicated. I know how to make swap image thumbnails, but i think my site would be more user friendly (and look more professional) if i could have next and back buttons. Would this involve complicated css code (which scares the life out of me!) or is there a relatively easy way to do it? I have got two 'dreamweaver for idiots' books, but neither of them cover this topic. Can anyone help?

    If you are using CS4, there is a Command to create a Web Album... this does it automatically for you.
    Otherwise, you can create this manually.  Say you have 3 pages,
    page1.html  (is the index page of the album)
    page2.html
    page3.html
    Therefore, using ordinary text links
    Home would link to page1.html
    Previous would link to page3.html
    Next would link to page2.html
    You would need to make adjustments naturally to each page as you move along with the gallery pages, changing the previous and the next links as needed.  Below is a a basic example of setting up the links in a simple table structure.  You would also then style the table layout as you see fit - yes, using css preferably  :-)
    <table>
    <tr>
    <td><h2>MY GALLERY OF PHOTOS</h2>
    <a href="page3.html">Previous</a> | <a href="index.html">Home</a> | <a href="page2.html">Next</a>
    </td>
    </tr>
    <tr>
    <td>
    <br>
    <a href="../images/img_2401_jpg.jpg"><img src="../images/img_2401_jpg.jpg" border=0></a><br>
    </td>
    </tr>
    </table>
    Here's an article on creating an album using the DW Command I mentioned earlier. You could create the album and then copy and paste the code into a current page if you've already designed on.,... not too difficult, I just tested it.  You do however, need to have Fireworks to process the images.
    http://livedocs.adobe.com/en_US/Dreamweaver/9.0/help.html?content=WSc78c5058ca073340dcda91 10b1f693f21-7ad1.html
    You could also check out the Lightbox effect which is very popular:
    http://www.lokeshdhakar.com/projects/lightbox2/
    Or do a google search for 'jquery'.  There are different album effects using that framework as well.
    Hope some of this helps  :-)
    Nadia
    Adobe® Community Expert : Dreamweaver
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    Book: Ultimate CSS Reference
    http://www.sitepoint.com/launch/005dfd4/3/133
    http://twitter.com/nadiap

  • Using Swing how can we create socket and send data thru TCP/IP on the socke

    Hi All,
    Can anyone tell the link or answer to me about the Socket programming using Swing and data get & post onto the socket.
    Thanx & Regard
    Ashu

    swing is nothing to do with socket programing, you need to code using core java and API of net
    so please go through this link [http://www.javaworld.com/javaworld/jw-12-1996/jw-12-sockets.html]

Maybe you are looking for

  • Distributing content in portal through KM

    Hi friends,   My requirement is to distribute the documents to some group of users through KM. Can anybody pls help me how to do this? and what r all the pre-requisites and how to configure the KM? Please help me out. Regards sireesha.

  • Weird problem with animation

    hi, I'm using the new version, and this is a file made with the previous version. WeTransfer As you can see it is a map with places. If you click a place an overlay appears. If you click another place, the old one goes away, the new one shows up... n

  • IPhoto 06 crashes while trying to upgrade library

    I get the following error every time - I have 1 gig of RAM on a PB 1.67 MHz. Jan 13 14:24:37 bullwinkle diskarbitrationd[46]: iPhoto [334]:22075 not responding. iPhoto(334,0xa000ed68) malloc: * vm_allocate(size=8421376) failed (error code=3) iPhoto(3

  • Using Lightroom in Conjunction with Elements

    I currently use Elements 10 (and love it) and am considering purchasing Lightroom 5.  However it seems like the lines between some of the Adobe products is getting blurred.  Photoshop Elements seems to be getting more of the capabilities of Photoshop

  • Whole block can get infinity and I can't...

    I have just signed up to BT standard broadband and am hoping to possibly upgrade to fibre in the near future. I have tried calling BT however they say I can't get fibre due to them entering in the phone number and saying it is unavailable.  When I ch