Multiple Lines in production

Hi to All,
I WOULD LIKE TO KNOW HOW TO  SET THE CAPACITY IF WE HAVE MULTIPLE WORKCENTRE AND MRP TO CONSIDER MULTIPLE WORKCENTRE WHILE PLANNING  ORDERS.
FOR EXAMPLE WE HAVE THREE CELLS OF CRANK CASE LINE AND TWO CELL WE RUN THREE SHIFT AND ONE CELL TWO SHIFT AND ALSO OUTPUT PER CELL IS DIFFERENT . SIMILARLY WE HAVE TWO CONVEYOR LINE IN ENGINE ASSY AND WE PLAN TWO SHIFT WITH DIFFERENT OUTPUT PER SHIFT CONVEYOR WISE.
RGS
NITIN

Dear Nitin,
In standard SAP the system does not considers the capacity and irrespective of the same the system generates planned
order's during MRP.Only by capacity leveling you can reschedule the production order's or adjust your production plan.
If you want multiple capacite's to be considered during MRP and your planned order's date should be calculated on the same
means,double click on the operation number in the routing and include the radio button for require splitting.
Check the planned order's date calculation.
Regards
Mangalraj.S

Similar Messages

  • Production order from sales order with multiple line item(for one material)

    Dear Gurus,
    I am working in MTO scenarios. If there is several line item in a sales order for one material, multiple production order( same as no. of sales order line item) is getting created against each of the line item.My requirement is,since the material code is same in each line item and sales order is one, one production order should be generated for all line item. please tell me how to do it.
    (Here for one material, multiple line item is required for some specific reason)
    Regards
    Rajib Pathak

    Hi,
    This is not possible.
    In Std SAP will create one production order for one sales order. The stock is also allocated to thet particular sales order only. Because each and every sales order may vary in any one of the parameters. Considering this, SAP has designed like this.
    Regards,
    V. Suresh

  • How do i add multiple lines in a cell (like a list) in Excel for MAC?

    I'm trying to add multiple lines (in the form of a list) in a individual cell in Excel for MAC.  I used ALT Enter on my PC but that doesn't work on the iMac.  Does anyone know how to do this?
    Thanks!

    It's been a while but I think you hold SHIFT while typing a page break (RETURN) to make a new line without shifting to another cell.
    However, as Excel isn't an Apple product, I am sure you will get a faster and more current answer by using Microsoft's Office:Mac forums here:
    Office for Mac forums
    They are very good.

  • 1 line item in invoice for Multiple line items of SO

    Hi SD Gurus,
    My client requirement is multiple line items of the sales order should reflect as a single line item in the invoice ..?
    For ex: I am using Service material type Dien & material created under different material groups.
    My Sales order looks somthing like below with material no & amount:
    10  Testing charges    10$     material group xx1
    20  Baking charges     20$     material group xx2
    30  Scan/Taping          20$    matierial group xx1
    Now in the invoice its should reflect only with 1 line item with the whole amount 50$.
    Kinldy let me know how  this requriement can be fullfilled.
    Thanks,
    Rahul

    Dear Rahul
    I think you can apply Rate Routing for this.
    A rate routing is a routing for repetitive manufacturing. It enables you to easily reproduce the lean production process.
    In the rate routing, the production rate per operation is defined (production time according to a base quantity). Set-up time is not usually defined, since no changes to setup are planned.
    However, you can also use standard routings. A standard routing represents the various steps of production (such as setup, processing, teardown and so on), operation by operation, if necessary with suboperations.
    A rate routing does, however, offer all the same functions as a standard routing.
    <b>Structure</b>
    If you use the same standard value key for all the work centers on the line, the system copies the descriptions of the standard values to the routing as the column headings of the operation overview.
    If you use different standard value keys for the work centers, the system copies the descriptions into the routing that is entered in the control data for the routing in Customizing.
    To create a Rate Routing, follow the steps as under:-
    1)  Starting from the main Line Design menu, choose Rate routing --> Create.
           The system displays the initial screen for rate routings.
    2)  Enter the plant, the material and in the field Group, the group to which you want to assign the rate routing.
    3)  Choose Enter.
         The system displays the screen Header details.
    4)  Enter the following data:
             => the routing description
             => the plant
             => the usage of the rate routing, i.e.production
             => the status, i.e. released
             => the unit of measure of the materials to be produced
    5)  Save your rate routing.
    <b>Result</b>
    You have created the rate routing. Continue creating the main production line and if necessary, feeder lines.
    You can also take the help of your PP guy for this.
    Thanks
    G. Lakshmipathi

  • Multiple Line Items in billing

    Dear All,
    I got one issue on production server,the scenario is like this,
    My client gives one Free of Cost (Item Category is TANN) On purchase of one material like XYZ(with item category TAN).
    And while creating Sales order it takes FOC automatically.
    And when i am trying to do billing it shows FOUR Line items instead of TWO.
    Can anybody help me to solve this problem...
    What should i check...?
    Its urgent...
    Thanks & Regards,
    Ullas Kumar

    Hi ullas
    As your requirement is in invoice VF01, you want to see multiple line items . that means, if you have entered 1line item then 1line item will be free so totally 2 line items will come in sales order with TAN&TANN item categories.But in invoice you want 4line items
    so go to VTFL and check the billing quantity feild as B and check the cumulative cost feild
    Reward if useful
    Regards
    Srinath

  • Is it possible multiple line items debit & single line item credit and different cost centers and different profit centers in fbcj

    Hi all ,
    I have a requirement to Post Cash Journal Document using FBCJ tcode.
    Is it possible multiple line items debit & single line item credit and different cost centers and different profit centers
    for exp:
    pk   GL a/c   description       amount   cost center  profit center
    40  400101  telephone exp   500        1403            P 1000
    40  400101  telephone exp    100       1404            P 2000
    50  200100  cash in hand      600-                             
       This is My requirement  is it possible in fbcj
        Please suggest me.ASAP.
    Regards
       Naresh.

    Hi,
      This you can do it in two ways:
    1. Make three header under top level....one Product A, 2nd Product B ( as Billing element) and third as Common expense ( only cost). Now 1st & 2 nd WBS, you have to have sales order linking with individual lint item, for third you will accumulate all the common expense till the period end then make a reposting of the same in desired proportion to both products WBS hierarchy
    (This is if you want to have a track on the common expense as well.......like planning, budgeting & control)
    After this reposting, run RA for individual billing element and hence you will all the complement detailing and control over Revenue and expense with respect to Product A and Product B individually.
    2. If you don't want to maintain that kind of detailing the common expense and keep track of it through project, then have cost centers accordingly and make an assesment/ distribution with respect to expenses accumulated at those cost centers for the period to the respective WBS under each product. Then execute the period end processes for the project.
    Or
    You can try with have two more line items in the costing sheet as an overhead against common expenses with respect each product.
    I hope this should help you.
    Regards
    Avisek Bhardwaj

  • Multiple line items with eCATT....again

    Hi folks,
    I am struggling with adding multiple lines in an eCATT script. For this example I will use the Airline demo example from SAP help: http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fd/4f6b3f3d643b3be10000000a114084/content.htm.
    (You initialize the Airline demo data with SE38>>SAPBC_DATA_GENERATOR first.)
    The demo is based on transaction EC_TUTORIAL_SAPGUI.
    Start transaction EC_TUTORIAL_SAPGUI
    Open an airline and flight
    Right click on a date and select New Booking
    Pick a customer from F4 list
    Select Passengers tab
    Enter a last name, title and date of birth.
    I have created the script, system and test data containers and test configuration. Everything runs great.
    Now I want to modify it a little so I can add multiple passengers into one flight booking request.
    I have read Sapna Modi & Rakesh Kumar Jain's excellent blogs and have been able to start using eCATT productively with their help. Also from reading all the SDN posts I think I need the DO...ENDDO loop. (I would like to do it without inline ABAP mainly because I don't know ABAP at all and we will want to do similar things in the future with other non-ABAP'ers.)
    Here is my test script ZTUTORIAL_TS_LOOP:
    SAPGUI ( EC_TUTORIAL_SAPGUI_100_1 ).
    SAPGUI ( EC_TUTORIAL_SAPGUI_120_1 ).
    GETGUI ( EC_TUTORIAL_SAPGUI_100_4 ).
    Switch to Passengers tab. Cursor in Class field.
    SAPGUI ( EC_TUTORIAL_SAPGUI_100_STE_1 ).
    Delete first row so I start with empty table.
    SAPGUI ( EC_TUTORIAL_SAPGUI_100_STE_2 ).
    This is where I am stuck. I don't know how to add as many rows as there are variants (records) in my test data containter.
    The way it is below, it inserts the same record twice and the whole script repeats for each record in the TDC.
    DO ( 2 ).
    Insert row and type passenger name, title, DOB.
    SAPGUI ( EC_TUTORIAL_SAPGUI_100_STE_3 ).
    ENDDO.
    Save.
    SAPGUI ( EC_TUTORIAL_SAPGUI_100_STE_4 ).
    Confirm pop-up.
    SAPGUI ( EC_TUTORIAL_SAPGUI_110_STE_1 ).
    Show message in status bar.
    SAPGUI ( EC_TUTORIAL_SAPGUI_100_STE_5 ).
    I know I have to pass the DO a parameter and somehow get that into the command and use that to loop through the test data container, I just haven't been able to put the pieces together. Can anybody help? Thank you,
    David

    Dear David,Vinay and Sebastian,
    I have an issue....I am new to ECATT.
    iam Using SECATT Transaction.
    I need 2 record PFCG to Create Role and assign Multiple Transactions.
    Now I have Gone through th eBlogs of Sapna and many other links.
    Firstly I have Tried Both the Methods,
    TCD and GUI as well.
    My Case is as Follows....
    1)while Creating Role in PFCG(Recording).
    I give
             a)Role Name
             b)Description Then Navigate to Menu Tab
             c)Click on  Transaction Button
             d)now this is where the Problem Arises.
    I  first    Enter VA01 and press enter
       Then  Enter Va02 and Press enter
    Similarly I make Multiple Entries.
    After that I Click on Assign Transaction and then Save my Recording and then go back.
    Now I am Done with my recording.
    Now issue is after creating my Test Script...When i Create the Test Configuration.
    I provide the Test Script Name and Download the Template.
    Now after Creating Template I give Entries as follows in tab Delimit Format.
    I modified my File as follows.
    [VARIANT]                          [DESCRIPTION]     V_ROLE_NAME     V_DESC     V_TCODE
                                          BDC field value     BDC field value     BDC field value
    *ECATTDEFAULT                           X104     A1     VL03N
    1          ROLE1     A1     SE37
    2          ROLE1     A1     SE38
    3          ROLE1     A1     SE51
    Problems:-
    1)Whenever I Execute The Recording it Shows Previous Entry which i made during Recording and says that the Role already Exists
    2)while recording in Foreground Teh File Picks ROLE1 then picks the Desc  A1 then when it Picks the Transaction  se37.
    now when it Goes to second line it Shows the Previous Entry I JUST ENTERED.i.e SE37 and says that Tcode laready Exists.
    How do i Clear this previus variables.
    2ndly if i Program My Code and dont Use External Vaiant.
    I made the File as Below as Text Delimit and This Time iam not using The Template.
    But when i Execute it It Gives Error.
    Is there any Problem with My File..Please Suggest.
    It has been 3 Days and iam Still Stuck at this issue.
    ROLE2     DES1     MB5B
    ROLE2     DES2     ME23N        
    Please Respond.
    Thanks Awaiting.
    Essam

  • Multiple line items in ESERVICE table

    Hi All,
    In production they moved out one BP from a premise and Moved in another BP in that premise.Now when they reverse both Move In and Move out they are getting multiple line items in ESERVICE table.In our case two shipper was created.How to avoid this issue?
    Regards,
    Avishek

    You recieve in reference to the PO, not in reference to the 351 goods issue movements, hence SAP defaults just one item to MIGO.
    If you get the quantity in one physical delivery, how can then the receiver know that it was issued with 3 different material documents?
    if the receiver gets kowledge about 3 different goods issues from the accompaning paperwork then he amend the suggested quantity and post  partial quantities.
    if the goods issue was done with 3 material documents because of a certain reason like different batches, then the receiver can click the distribute icon to distribute the quantity of one item line in MIGO to several lines based on batch numbers.

  • Want to create 1 reciept with multiple line items under a header in APO

    Hi All,
    I am using BAPI_MOSRVAPS_SAVEMULTI3 to create In-Transit which is the reciept element. But it creates only for a single location/product.
    I have a requirement where I have to create multiple line items under 1 intransit order. Can somebody suggest me how to perform this using a BAPI in APO ??
    Best Regards,
    Chandan Dubey

    Hi Micky
    Firstl you should upload the Line items for a particular sales Order in an Internal table
    and then pass that internal table to your BAPI during your coding corresponding to a particu;lar sales order
    In case of any issues pls revert back
    Reward points if helpful
    Regards
    Hitesh

  • How to make a long Legend contained in multiple line

    I have a PieChart needs legends. Some of them are very long.
    Is it possible to make long legends written in
    multiple lines? Here is the code for the PieChart and Legend:
    <mx:PieChart id="byMake" height="325" width="100%"
    dataProvider="{make.product}" showDataTips="true" >
    <mx:series>
    <mx:PieSeries field="quantity" nameField="brand"
    startAngle="0" />
    </mx:series>
    </mx:PieChart>
    <mx:Legend dataProvider="{byMake}" horizontalAlign="left"
    />

    "glen08" <[email protected]> wrote in
    message
    news:giem8i$e0j$[email protected]..
    >I have a PieChart needs legends. Some of them are very
    long. Is it possible
    >to
    > make long legends written in
    > multiple lines? Here is the code for the PieChart and
    Legend:
    >
    > <mx:PieChart id="byMake" height="325" width="100%"
    > dataProvider="{make.product}" showDataTips="true" >
    > <mx:series>
    > <mx:PieSeries field="quantity" nameField="brand"
    startAngle="0" />
    > </mx:series>
    > </mx:PieChart>
    > <mx:Legend dataProvider="{byMake}"
    horizontalAlign="left" />
    Try this as your itemRenderer
    package com.magnoliamultimedia.views
    import flash.display.DisplayObject;
    import mx.charts.LegendItem;
    import mx.core.UITextField;
    public class WrappingLegendItem extends LegendItem
    public function WrappingLegendItem()
    super();
    override protected function createChildren():void{
    super.createChildren();
    for (var i:int=0;i<numChildren; i++){
    var child:DisplayObject=getChildAt(i);
    var txt:UITextField = child as UITextField;
    if (!(txt==null)){
    txt.wordWrap=true;
    txt.invalidateSize();

  • How to create a multiple line label?

    Hi,
    I need to set a multiple line label. If I enter the following code:
    strTitle = "<html><body><b><font color=red>The first line,<br>";
    strTitle = strTitle + "the second line.</font></b></body></html>";
    jLabelTitle.setText( strTitle );
    I can see a two line label. However, with such code, if I go to the UI editor for that frame, the jdev immediately crashed. I am using jdev 9i_902. If I go to UI editor for any other frames without such code, everything is fine, no problem at all.
    Can anybody explain why? Is there other way to create a multiple line label?
    Thanks!
    Harvey

    Harvey - I have reproduced this in the production and the latest build. I have logged bug 2446385 but have found a work around. If
    you code:
    strTitle = "<html><body><b><font color=red>The first line,<br>"+"the second line.</font></b></body></html>";
    jLabel1.setText(strTitle);
    It seems to work ok.
    Hpoe this helps and thanks for posting this.
    Regards
    Grant Ronald
    Product Management

  • Concatenate multiple lines into 1

    I am trying to pull a list of journal entries that meet a certain criteria.  What I would like to know is if I can take that list of multiple lines and combine them into one?  This way I can use the results and run another report with those parameters.  I don't know of any other way to pull in all the lines in a journal entry with certain GL accounts.  I know I can do this if I export a query as an .iqy file and run it in excel, but nobody in my company knows, or wants to know, how to do this other than me.  Or if you know of a better way, I would surely appreciate it.
    Thanks.
    Oracle BI Discoverer 11g (11.1.1.6.0)
    Oracle Business Intelligence Discoverer Plus 11g (11.1.1.6.0)
    Discoverer Model - 11.1.1.6.0
    Discoverer Server - 11.1.1.6.0
    End User Layer - 5.1.1.0.0.0
    End User Layer Library - 11.1.1.6.0
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    Copyright © 1999, 2009, Oracle.  All rights reserved.

    Post Author: Charliy
    CA Forum: General
    Take the initialize formula out of the Group Header.
    Place it an the Report Header, and create a second (print suppressed) Group Footer and place it there

  • BDC for VA01 with multiple line items

    Hi,
    My client is 4.6c version, I have created a BDC program for transaction VA01 which will have multiple line items. I'm able to enter 12 items in the first instance, then 12 items next time. But I'm not doing any P+..System is automatically taking me to first item after reaching item 12 every time.
    But I have a doubt in production system also I will have only 12 items every time to enter..If not my program may not work..
    I'm calling BDC using following statment..
      CALL TRANSACTION 'VA01' USING BDCDATA
                        MODE 'N'
                        UPDATE 'S'
                        MESSAGES INTO lt_message.
    Please suggest me the solution.
    Regards
    Jaker.

    I had a similar problem with goods movements in a CO11N BDC I wrote.  Here's how it was fixed:
    DATA: lcl_opt     TYPE ctu_params.
    lcl_opt-defsize  = 'X'.
    CALL TRANSACTION 'CO11N' USING i_bdctbl OPTIONS FROM lcl_opt
                                 MESSAGES INTO messco11n.
    The option "defsize" makes sure that the screen always contains the same number of lines as it goes through the BDC.  That way, you can write in the paging logic without having to worry about the number of lines that appear on a user's screen as it may vary depending on how their screen resolution is set up.

  • BDC code for MB01 Application(Multiple Line Items)

    Hi,
    Can anybody please send me the BDC CODE for MB01 Application(for Multiple Line items).
    Very urgent.
    Thanks And Regards,
    Ajay

    Instead of BDC you can use following BAPI.
    see the following ex:
    BAPI TO Upload Inventory Data
    GMCODE Table T158G - 01 - MB01 - Goods Receipts for Purchase Order
                         02 - MB31 - Goods Receipts for Prod Order
                         03 - MB1A - Goods Issue
                         04 - MB1B - Transfer Posting
                         05 - MB1C - Enter Other Goods Receipt
                         06 - MB11
    Domain: KZBEW - Movement Indicator
         Goods movement w/o reference
    B - Goods movement for purchase order
    F - Goods movement for production order
    L - Goods movement for delivery note
    K - Goods movement for kanban requirement (WM - internal only)
    O - Subsequent adjustment of "material-provided" consumption
    W - Subsequent adjustment of proportion/product unit material
    LOOP AT I_TAB.
          count = sy-tabix.
          SELECT SINGLE * FROM ZMM_GI_WIP
                                    WHERE GI_NO = I_TAB-DOCNO AND
                                    GI_DATE = I_TAB-DOCDT.
          IF SY-SUBRC = 0.
            I_TAB-FLAG = 'C'.
            modify i_tab index count.
            CONCATENATE 'ERROR  GI : ' I_TAB-DOCNO
            '  WAS ALREADY UPLOADED' INTO I_MSG1.
            APPEND I_MSG1.
            CLEAR I_TAB-FLAG.
            CONTINUE.
          ELSE.
            CONCATENATE I_TAB-DOCDT+4(2)
                        I_TAB-DOCDT+6(2)
                        I_TAB-DOCDT+2(2)
                        I_TAB-DOCDT+0(2)
                        INTO G_DATE.
            gmhead-pstng_date = G_DATE.
            gmhead-doc_date = sy-datum.
            gmhead-pr_uname = sy-uname.
    "01 - MB01 - Goods Receipts for Purchase Order
            gmcode-gm_code = '03'.
            refresh itab.
            clear itab.
            SORT I_MAIN BY SOL_DOCNO.
            LOOP AT I_MAIN WHERE DOCNO = I_TAB-DOCNO.
              IF I_MAIN-GI_TXN_TYPE = 'MGI'.
                itab-move_type  = '291'.
              ENDIF.
              itab-mvt_ind    = ' '.
              itab-plant      = I_MAIN-WERKS.
              itab-material   = I_MAIN-MATNR.
              itab-entry_qnt  = I_MAIN-ERFMG.
              itab-stge_loc   = I_MAIN-LGOBE.
              itab-ENTRY_UOM = I_MAIN-ERFME.
              IF I_MAIN-WERKS = 'MR'.
                itab-TR_PART_BA = '11'.
              ELSEIF I_MAIN-WERKS = 'MR'.
                itab-TR_PART_BA = '12'.
              ENDIF.
              append itab.
            ENDLOOP.
            if not itab[] is initial.
              call function 'BAPI_GOODSMVT_CREATE'
               exporting
                   goodsmvt_header             = gmhead
                   goodsmvt_code               = gmcode
                 *   TESTRUN                     = ' '
              IMPORTING
                  goodsmvt_headret            = mthead
             *   MATERIALDOCUMENT            =
      MATDOCUMENTYEAR             =
               tables
                 goodsmvt_item               = itab
      GOODSMVT_SERIALNUMBER       =
                return                      = errmsg.
              clear errflag.
              loop at errmsg.
                if errmsg-type eq 'E'.
                  write:/'Error in function', errmsg-message.
                  errflag = 'X'.
                else.
                  write:/ errmsg-message.
                endif.
                move errmsg-message to i_msg1.
                append i_msg1.
              endloop.
              if errflag is initial.
                CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
              EXPORTING
                WAIT          =
              IMPORTING
                RETURN        =
               commit work and wait.
                if sy-subrc ne 0.
                  write:/ 'Error in updating'.
                  exit.
                 endif.
            endif.
          ENDIF.
           wait up to 20 seconds.
        ENDLOOP.

  • Setting the value of a single attribute for multiple line items

    Hi all,
    I am working on a Web Dynpro application, I have created this applicaion for an accounting document so it has header data and multiple line item data. As per the requirement I have to put the following logic:
    1. When a user enters a value in the field KBLNR on the line item, all the other fields like cost centerm fund, functional area should populate from a database table based on the value of the KBLNR. to get this I have put the following code:
    TYPES: BEGIN OF t_kblp,
              fipos     TYPE kblp-fipos,
              kostl     TYPE kostl,
                      END OF t_kblp.
      DATA lv_kblnr TYPE wd_this->element_t_bseg-kblnr.
      DATA: lt_kblp TYPE STANDARD TABLE OF t_kblp,
            wa_kblp LIKE LINE OF lt_kblp,
            lt_bseg              TYPE STANDARD TABLE OF bseg,
            wa_bseg              TYPE bseg.
      DATA lo_nd_t_bseg TYPE REF TO if_wd_context_node.
      DATA lo_el_t_bseg TYPE REF TO if_wd_context_element.
      DATA: ls_t_bseg TYPE wd_this->element_t_bseg,
            lo_api_controller    TYPE REF TO if_wd_controller,
            lo_message_manager   TYPE REF TO if_wd_message_manager,
            lo_nd_tbseg          TYPE REF TO if_wd_context_node,
             lo_el_tbseg          TYPE REF TO if_wd_context_element,
             lt_el_tbseg          TYPE wdr_context_element_set,
             lv_bseg              TYPE bseg.
      lo_nd_t_bseg = wd_context->path_get_node( path = `ZDATA.CHANGING.T_BSEG` ).
      lo_api_controller ?= wd_this->wd_get_api( ).
      CALL METHOD lo_api_controller->get_message_manager
        RECEIVING
          message_manager = lo_message_manager.
      lo_nd_tbseg = wd_context->path_get_node( path = `ZDATA.CHANGING.T_BSEG` ).
      lt_el_tbseg = lo_nd_tbseg->get_elements( ).
      LOOP AT lt_el_tbseg INTO lo_el_tbseg.
        lo_el_tbseg->get_static_attributes(
                               IMPORTING static_attributes = lv_bseg ).
      IF lv_bseg-kblnr NE ' '.
          SELECT belnr
                 fipos
                 kostl
                 PSPNR
                 geber
                 saknr
                 fkber
                 grant_nbr
                 gsber
                 FROM kblp
                 inTO corresponding fields of wa_kblp
                 WHERE belnr = lv_bseg-kblnr and
                      saknr = lv_bseg-saknr.
            ENDSELECT.
    lo_nd_t_bseg = wd_context->path_get_node( path = `ZPRELIMINARY_POSTING.CHANGING.T_BSEG` ).
    * get element via lead selection
            lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
    lo_el_tbseg->set_static_attributes(
                               EXPORTING static_attributes = wa_kblp ).
       CLEAR: lv_bseg, wa_kblp.
      ENDLOOP.
    everything is working fine but now the problem is couple of fields that I have in wa_kblp are with different names in bseg table and hence they are not updating... I tried putting the following logic within the loop :
    lo_el_t_bseg->set_attribute(
        name =  `PROJK`
    value = wa_kblp-pspnr ).
    but it's only setting the value of the first line item and not working for the multiple line items, can you please tell me how can do this?
    Thanks,
    Rajat Garg
    Edited by: rajatg on Jun 24, 2011 5:09 PM

    Hi Chris,
    I tried your code and it worked fine but after I put this code I am getting another issue. within the loop I had a code to make the fields non modifiable on the screen and was working fine but now what's happening is it's making the all the lines uneditable except the one with data on it (which is completely opposite), this is what I have coded:
    LOOP AT lt_el_tbseg INTO lo_el_tbseg.
        lo_el_tbseg->get_static_attributes(
                               IMPORTING static_attributes = lv_bseg ).
    IF lv_bseg-kblnr NE ' '.
      SELECT belnr
                 fipos
                 kostl
                 PSPNR
                 geber
                 saknr
                 fkber
                 grant_nbr
                 gsber
                 FROM kblp
                 inTO corresponding fields of wa_kblp
                 WHERE belnr = lv_bseg-kblnr and
                      saknr = lv_bseg-saknr.
            ENDSELECT.
    move: wa_kblp-belnr to wa_bseg-kblnr,
    wa_kblp-fipos to wa_bseg-fipos,
    wa_kblp-kostl to wa_bseg-kostl,
    wa_kblp-pspnr to wa_bseg-projk,
    wa_kblp-geber to wa_bseg-geber,
    wa_kblp-saknr to wa_bseg-saknr,
    wa_kblp-fkber to wa_bseg-fkber,
    wa_kblp-grant_nbr to wa_bseg-grant_nbr,
    wa_kblp-gsber to wa_bseg-gsber,
    lv_bseg-dmbtr to wa_bseg-dmbtr.
    append wa_bseg to lt_bseg.
    lo_nd_edit_property = wd_context->path_get_node( path = `ZPRELIMINARY_POSTING.CHANGING.T_BSEG.EDIT_PROPERTY` ).
          get element via lead selection
          lo_el_edit_property = lo_nd_edit_property->get_element( ).
          lo_el_edit_property->set_attribute(
            name =  `EDIT_FIELD`
            value = 'ABAP_TRUE' ).
          lo_el_edit_property->set_attribute(
            name =  `EDIT_WBS`
            value = 'ABAP_TRUE' ).
    endif.
    endloop.
    o_nd_t_bseg = wd_context->path_get_node( path = `ZPRELIMINARY_POSTING.CHANGING.T_BSEG` ).
    get element via lead selection
            lo_el_t_bseg = lo_nd_t_bseg->get_element( ).
      CALL METHOD lo_nd_t_bseg->bind_table
        EXPORTING
          new_items            = lt_bseg.
    Can you please see what I am doing it wrong here....

Maybe you are looking for