Problem With  Plant

hi,
How to Know Plant for Particular Material with help of sapgui
regards
Guru

Plant related material data are stored in MARC table.
Cheers,
Thomas.

Similar Messages

  • Article creation-problem with Plant data

    Hi,
    I am using BAPI_MATERIAL_MAINTAINDATA_RT to create an Article with Basic view, Log. DC view and Sales view. I am able to create an article when  RP type is ND( no planning).
    But I am getting an error when I am passing RP type value other than "ND".
    I am passing the following parameters:
    Import Parameters:
    1.HEADDATA:
    MATERIAL:  ARTICLE123
    MATL_TYPE:HAWA
    MATL_GRP:06
    MATL_CAT:00
    BASIC _VIEW:X
    Sales_view :X
    Logdc_view: X
    NO_APPL_LOG:X
    2.CLIENT DATA
    MATERIAL: ARTICLE123
    BASE_UOM:KG
    TRANS_GRP:0001
    TAX_CLASS:0
    3.CLIENTDATAX
    MATERIAL: ARTICLE123
    BASE_UOM:X
    TRANS_GRP:X
    TAX_CLASS:X
    4.ADDLCLIENTDATA
    MATERIAL: ARTICLE123
    LOADINGGRP-0001
    5. ADDLCLIENTDATAX
    MATERIAL: ARTICLE123
    LOADINGGRP-X
    6.MATERIALDESCRIPTION
    MATERIAL: ARTICLE123
    LANGU-EN
    MATL_DESC-TEST MAT
    7.PLANTDATA
    MATERIAL -ARTICLE123
    PLANT---RFDC
    MRP_TYPE--pd
    MRP-CTRLER- 001
    LOTSIZEKEY-EX
    AVAILCHECK--01
    8 PLANTDATAX
    MATERIAL- ARTICLE123
    PLANT--X
    MRP_TYPE--X
    MRP-CTRLER- X
    LOTSIZEKEY-X
    AVAILCHECK--X
    9.SALESDATA:
    MATERIAL- ARTICLE123
    SALES_ORG---IN01
    DISTR_CHANL--01
    SELL_DC_fr----10.09.2008
    Sell_dc-to: 10.09.2020
    10.SALESDATAX:
    MATERIAL- ARTICLE123
    SALES_ORG-X
    DISTR_CHANL-X
    SELL_DC_FR-X
    Sell_dc-TO-X
    I am getting the error: "144 the field MARC-DISMM is defined as a required field; it doesnot contain an entry."
    with the above parameters, I am able to create an article using MM41.
    Is any addl. parameters needed?
    Please help me in this regard.
    Regards,
    Kiran.

    Hmm, difficult to check out.
    I guess the best thing is to open an customer message, open system and prepare a test example.
    With debugging it is a thing of 10 seconds.
    The message is more or less generic. It could be possible that the sales data will lead to a different reference handling. Mostly such errors are based on customizing and masterdata dependencies.
    Set a breakpoint in material_update_all_retail,
    at the end there will be a loop over the sites. Stop at every site and see when erro will appear. Then you will have the logic key in RMMG1 for the error.

  • I'm having problems with my app, plants vs. zombies 2. It'll open and stay open for a few seconds then shut down. Help please.

    I'm having problems with my app, plants vs. zombies 2. It'll open and stay open for a few seconds then shut down. Help please.

    Check to see if there are Updates available... If already up to date...
    Try This...
    Close All Open Apps... Sign Out of your Account... Perform a Reset... Try again...
    Reset  ( No Data will be Lost )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...

  • Problem in SC with plant description

    Hi Experts,
    i have a problem with the specific plant(Eg:IN01).i have created this plant in R3 and replicated to SRM through BBP_LOCATIONS_GET_ALL.
    when i create a SC for a any product.i found that the description of the plant that appears is my vendor address.
    i have checked the description of plant in org structure it remains same as the backend system.
    we dont follow info records.this is a classic scenario.
    could some one suggest what could have went wrong.
    regards
    subramanyam

    hi check this table entry for your plant BBP_ATTR_VALUE_T
    wrk= plant
    as sanjeev suggested you can run the report if ecc plant descrition is incorrect for WRK attribute .
    where did you see vendor address instead of plant. explain ? in which basic data?
    br
    muthu

  • When i open facebook firefox got freezed for a while.does facebook planting something on my PC or its problem with my firefox?

    it is been a long time i have seen this on my firefox that when ever i open facebook it takes 10-20 or even more seconds to load and during that time it freezes down so if i try to do anything on FF it will say "not responding".i doubt that its problem with facebook only because i have been using FF for a long time and never experienced anything like this before.

    1. Double-click the Home button to close all Inactive Apps in Task Bar
    2. Hold the Apps in Task Bar down for a second or two until you see the minus sign
    3. Tap the minus sign to close Apps
    4. Tap center of screen to return to Home Screen
    5. Reset iPad. Hold the Sleep and Home button down for about 10 second until you see the Apple logo.

  • Problem with checkbox in the selection screen

    Hi guys,
    I have a problem with the check box in the selection screen.When i select a check box then a field in the selection screen should be enabled for entering a value.Again if i unselect the checkbox then the field should be disabled for entering a value.I have written the code in at selection-screen output.
    The problem is when i select the check box ,the field is not enabled.But when i press enter after selecting the checkbox then the field is enabled for input.It is the same when i unselect the checkbox,after i press enter only the field is getting disabled.What could be the problem.Any suggestions please?
    Thanks.

    Hi d p
                 Please try this code . I think this code have some way that you would like.
    REPORT  zdownload_to_application_server.
    TABLES : caufvd, jest.
    I N C L U D E  P R O G R A M                                        *
    *INCLUDE znrpstnd.
    Selection Screen                                                    *
    SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-t03.
    PARAMETERS: p_outb RADIOBUTTON GROUP g1 USER-COMMAND outb DEFAULT 'X' ,
                p_inb RADIOBUTTON GROUP g1.
    SELECTION-SCREEN END OF BLOCK b3.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.
    PARAMETERS : p_werks LIKE caufvd-werks MODIF ID a.        " Plant   "OBLIGATORY
    SELECT-OPTIONS  :  s_auart FOR caufvd-auart MODIF ID a,       " Order Type
                       s_aufnr FOR caufvd-aufnr MODIF ID a.       " Order number
    PARAMETERS: p_path TYPE string DEFAULT 'C:\SchedulerInterface-OutboundTextFile\' MODIF ID a,
                p_actual AS CHECKBOX MODIF ID a.                  " Transfer Actual
    SELECTION-SCREEN END OF BLOCK b1.
    SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-t02.
    PARAMETERS : p_werks2 LIKE caufvd-werks MODIF ID b,   " Plant   "OBLIGATORY
                 p_path2 TYPE string DEFAULT 'C:\SchedulerInterface-InboundTextFile\' MODIF ID b,
                 p_path3 TYPE string DEFAULT 'C:\SchedulerInterface-InboundTextFile\' MODIF ID b,
                 p_sessio TYPE apqi-groupid MODIF ID b.   " BDC Session
    SELECTION-SCREEN END OF BLOCK b2.
    AT SELECTION-SCREEN OUTPUT.
      IF p_outb EQ 'X'.   " Outbound --> Hide inbound
        LOOP AT SCREEN.
          "IF screen-name = '%BT02011_BLOCK_1000'.
          IF screen-group2 = 'BLK'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'A'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'B'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ELSE.
        LOOP AT SCREEN.
          "IF screen-name = '%BT01004_BLOCK_1000'.
          IF screen-group3 = 'BLK'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'A'.
            screen-active = 0.
            MODIFY SCREEN.
          ENDIF.
          IF screen-group1 = 'B'.
            screen-active = 1.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path2.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_path         = 'C:\SchedulerInterface-InboundTextFile\'
          mask             = ',Text Files,.txt,All files,.*.'
        IMPORTING
          filename         = p_path2
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_path3.
      CALL FUNCTION 'WS_FILENAME_GET'
        EXPORTING
          def_path         = 'C:\SchedulerInterface-InboundTextFile\'
          mask             = ',Text Files,.txt,All files,.*.'
        IMPORTING
          filename         = p_path3
        EXCEPTIONS
          inv_winsys       = 1
          no_batch         = 2
          selection_cancel = 3
          selection_error  = 4
          OTHERS           = 5.
    TOP-OF-PAGE.
    START-OF-SELECTION.
    Regards
    Wiboon

  • Problem with variable in the woorkbook selection screen.

    Hi All,
    I have Problem with Variable in the selection screen. I have four variable in the report in this sequence
    <b>Plant (optional), calendar month (mandatory),  material (optional), Customer (mandatory). </b>
    In Development system, I changed the query to fix the problem for a formula. saved and executed the query. In the selection screen appeared four variables and executed. after executing the query and I saved the work book also. I logged out of the Bex Analyzer. In the RSRT I generated the report by clicking the Generated Report push button. and again logged into the Bex analyzer and ran the work book, now in the selection screen, appeared three Variables only, I am missing the variable <b>Customer</b>.
    The old report which is already  in the Production system is working fine. What could be the mistake I did in the development system.
    It is very urgent, I need to deliver this object as soon as possible.
    Can I anybody help on the same.
    Thanks in advance
    Narendra

    Yunus,
    I did what you said. I removed the variable from characteristic restrictions, saved the query and executed the query, appeared three variables Plant, Calender month and material. executed and saved the work book. disconeted from Bex analyzer, in RSRT Generated Report and logged into Bex analyzer ran the work book for selection Plant, calender month and material and went into change query definition and added the variable for customer which was removed earlier and and ran the query for selections Plant, Calender monmth, Material and customer. saved the work book. disconnected from Bex analyzer and closed all excel sheets and work books. In RSRT Generated Report and again connected to Bex analyzer and ran the work book, now appeared only three variables again missed variable customer.
    Yunus does any missed n the procedure what i did.
    It is helped what Chris was answered.
    Many Many Thaks for your time and replies.
    Thaks in advance
    Narendra

  • Problems with a Procedure

    People,
    I'm having a problem with a procedure in the moment I'm trying to execute it, could someone help.
    CREATE OR REPLACE PROCEDURE CARREGA IS
    begin
         declare
              strSQL VARCHAR2(250);
              NCham     number(9);
              cursor n_chamados is
              SELECT NumeroChamado, Planta, Instalacao, Defeito,
              DescricaoDefeito, Servico, DataChamado,Horas, Minutos
              FROM DEFEITOS_AUX;
    begin
         For reg_chamado in n_chamados
         Loop
              begin
                   NCham := reg_chamado.numerochamado;
                   strSQL := 'SELECT numerochamado FROM Defeitos';
                   strSQL := strSQL || ' WHERE numerochamado =';
                   strSQL := strSQL || NCham || ' GROUP BY numerochamado';
                   EXECUTE IMMEDIATE strSQL;
              exception
                   when no_data_found then
                   strSQL := 'INSERT INTO Defeitos (';
                   strSQL := strSQL || 'NumeroChamado, ';
    strSQL := strSQL || 'Planta, ';
                   strSQL := strSQL || 'Instalacao, ';
                   strSQL := strSQL || 'Defeito, ';
                   strSQL := strSQL || 'DescricaoDefeito, ';
                   strSQL := strSQL || 'Servico, ';
                   strSQL := strSQL || 'DataChamado, ';
                   strSQL := strSQL || 'Horas, ';
                   strSQL := strSQL || 'Minutos) ';
              strSQL := strSQL || 'VALUES ( ';
              strSQL := strSQL || reg_chamado.NumeroChamado || ', ';
              strSQL := strSQL || reg_chamado.Planta || ', ';
              strSQL := strSQL || reg_chamado.Instalacao || ', ';
              strSQL := strSQL || reg_chamado.Defeito || ', ';
              strSQL := strSQL || reg_chamado.DescricaoDefeito || ', ';
              strSQL := strSQL || reg_chamado.Servico || ', ';
              strSQL := strSQL || reg_chamado.DataChamado || ', ';
              strSQL := strSQL || reg_chamado.Horas || ', ';
              strSQL := strSQL || reg_chamado.Minutos || ')';
                   EXECUTE Immediate strSQL;
              end;
              strSQL := 'UPDATE Defeitos SET ';
              strSQL := strSQL || 'Planta = ' || reg_chamado.Planta;
              strSQL := strSQL || ', Instalacao = ' || reg_chamado.Instalacao;
              strSQL := strSQL || ', Defeito = ' || reg_chamado.Defeito;
              strSQL := strSQL || ', DescricaoDefeito = ' || reg_chamado.DescricaoDefeito;
              strSQL := strSQL || ', Servico = ' || reg_chamado.Servico;
              strSQL := strSQL || ', DataChamado = ' || reg_chamado.DataChamado;
              strSQL := strSQL || ', Horas = ' || reg_chamado.Horas;
              strSQL := strSQL || ', Minutos = ' || reg_chamado.Minutos;
              strSQL := strSQL || ' WHERE NumeroChamado = ' || NCham;
              EXECUTE Immediate strSQL;
         end loop;
    end;
    end;

    Hi Erika,
    there is no need for dynamic SQL.
    I suppose the NumeroChamado is your primary key and has an unique index on it.
    Just insert the rows and if there is already an existing row, catch the exception and update the row.
    CREATE OR REPLACE PROCEDURE CARREGA IS
      CURSOR n_chamados IS
        SELECT NumeroChamado,
               Planta,
               Instalacao,
               Defeito,
               DescricaoDefeito,
               Servico,
               DataChamado,
               Horas,
               Minutos
        FROM   DEFEITOS_AUX;
    BEGIN
      FOR reg_chamado IN n_chamados LOOP
      BEGIN
        INSERT INTO Defeitos (;
          NumeroChamado, ';
          Planta,
          Instalacao,
          Defeito,
          DescricaoDefeito,
          Servico,
          DataChamado,
          Horas,
          Minutos
        ) VALUES (
          reg_chamado.NumeroChamado,
          reg_chamado.Planta,
          reg_chamado.Instalacao,
          reg_chamado.Defeito,
          reg_chamado.DescricaoDefeito, 
          reg_chamado.Servico,
          reg_chamado.DataChamado,
          reg_chamado.Horas,
          reg_chamado.Minutos
      EXCEPTIONS
      WHEN DUP_VAL_ON_INDEX THEN
        UPDATE Defeitos SET
          Planta = reg_chamado.Planta,
          Instalacao = reg_chamado.Instalacao,
          Defeito = reg_chamado.Defeito,
          DescricaoDefeito = reg_chamado.DescricaoDefeito,
          Servico = reg_chamado.Servico,
          DataChamado = reg_chamado.DataChamado,
          Horas = reg_chamado.Horas,
          Minutos = reg_chamado.Minutos
        WHERE NumeroChamado = reg_chamado.NumeroChamado;
      END;
      END LOOP;
    END;

  • Pdf problem with Preview - how to report to Apple?

    Hi,
    I have been having problems with certain PDFs and Preview. The PDFs in question are scientific papers obtained via JSTOR (they manage the supply of papers from a range of Journals). In Preview many JSTOR papers display very slowly - so slowly that scrolling through the document is not practical. In Acrobat they are displayed normally, so this seems to be a Preview problem. There seem to be no settings in Preview that seem relevant to the problem, so how can I report this problem to Apple?
    all the best,
    Jeremy Harbinson

    Hi,
    So far as I can tell, I cannot attach a file to a posting to one of these discussion groups. A file which causes the problem can be found at
    http://www.jstor.org/stable/3066865
    Baroli, I and Niyogi, KK (2000). Molecular genetics of xanthophyll-dependent photoprotection in green algae and plants. Philosophical Transactions: Biological Sciences, 355;1385-94
    Note that the problem only seems to occur with JSTOR files: the same pdf - this time in an easily readable form, and minus the JSTOR header page - can be downloaded from the Royal Society website:
    http://journals.royalsociety.org/content/qpjabmqk0kxar5vb/
    all the best,
    Jeremy

  • Mocha & Keylight: problems with a greenscreen on the iPad

    Hey guys,
    at the moment I am doing my first greenscreen project with an iPad (and a TV). But I have a few problems with the turbulent footage.
    In the first picture you can see the tracked path on the iPad with Mocha. Everything moves really fine in the final result (see second picture). But there is a lot green left in the person's face and around the screen that I need to get rid of.
    So my first question: How do I get rid of those green diffuse edges around the screen and the green in the face?
    I tried several keying effects including keylight etc. – nothing worked. Either the green from the plants around dissappeared or it looked really edged. Is the only possibilty using moving masks? Or is there a more precise method?
    Second question: How can I isolate the hand from the greenscreen while interacting "over" the iPad? I have a few sequences where the hand of the person is interacting on the (green)screen. So I need to get the screen behind the hand although everything's moving :-/ Is that possible?
    Thanks a lot for your support!

    Green isn't wrong, but you'll get a better result using tracking and roto using a dark gray screen unless the objects passing in front of the screen are very complex. The dark gray screen allos you to pick up reflections and add them to the composite easily. It just looks more real. Mocha can generate the roto as well as the track. If you have a lot of movement then you have the same problems that you have with a bunch of movement on a green screen set. Edge contamination, motion blur, details being lost. With lots of detail and lots of movement you need a very good camera with a very good lens and a lossless or nearly lossless original. Shooting with a professional cine camera that shoots raw or 10 bit uncompressed is the only way to capture that kind of fine detail and pull it out in a key. Consumer and prosumer cameras just dont give you the color information or the resolution necessary to really do a great job with fine details. Acceptable for most work but not great.
    I guess my point is that if you shoot on a green screen you have to plan for color suppression and spill control on set. Plan your back lighting, and accept the fact that you'll have to do a bunch of color correcting and color suppression that you don't have to do if you shoot for roto. This gets into art direction, costuming, and set design. It's all about planning and the quality of the photography. If you are going to suppress green then you better not have anything in the scene that is important and green. Look at what happened to the green in the flower arrangement and the green in the plants in the window in my example below. A good set designer would have worked around that or let you know that you needed to do some rough roto work on the piece to restore those greens in the shot.
    I've done a ton of screen replacements for phones and ipads. We carefully plan the shoot so that there's just a bit of simple roto work. If we do need to use green screen (or blue or orange depending on the art direction of the scene) we keep the exposure levels down and the reflected light down. The biggest problem you have in your scene is that the green from the TV and the green from the tablet are so bright they are acting as light sources for the set. This is where an experienced cinematographer or vfx supervisor would have saved you a bunch of time in post.
    When you're stuck with footage with a lot of spill you have to isolate that spill and try and remove as much color as you can.
    Try this with keylight. I'm using your mocha.png. I set keylight to view the corrected source then set foreground color correction to on and set color suppression to green, then I set edge color correction to on and set color suppression to green. There is no green left in the image. Your green edges should be gone completely. As you can see, with these settings, the green from both screen is completely gone.
    To restore the green in the flower arrangement and the window just duplicate your keyed layer, do a rough roto around the flowers and the plants and reduce the color correction and color suppression to bring back the color there.
    This shows you that you'll need another layer to fix the color problems. Most of my work that involves keying results in a comp with 5 or 6 layers just to control the color, most of them copies of the main plate (green screen footage) two or three copies of the replacement footage (things that fill the green screen) a layer for light wrap, a layer for lighting effects, one or two layers for reflections if there are shiny things that are being keyed. and an adjustment layer for final color correction. Sometime two or three adjustment layers for color correction.
    Great compositing is seldom if ever two layers and one instance of Keylight.

  • Problem with inventory marker

    Hi,
    I have a problem with my inventory markers.
    When I do:  Material 1000251, Plant=0212, Record type = 1 (Only include material, plant, day, issues, and receipts)
    I get the totals of:  Issues = 0.  Receipts = 1  (This is correct.  On hand Qty = 1)
    When I do:  Material 1000251, Plant=0212, Record type = 1 (but I now include 0MAT_PLANT as well)
    I get the totals of:  Issues = 0.  Receipts = -4  (This is NOT correct.  On hand Qty = 1)
    Any ideas on how to correct this marker problem for 0MAT_PLANT?
    Thanks,
    Chris

    Hi Chris,
    Check the Marker Update scenarios in the below doc. This would give you some clue on your issue.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    Regards,
    Suman

  • Problem With MRP

    Hi Friends,
    I am facing a problem with MRP. In my Implementation, my Client is a Automobile Gasket Manufacturer.
    One major product line is Gaskets which is high volume and low price
    We will use Make to stock  with streategy 40.
    Now the queries are as follows-
    1)       What should be the frequency of MRP Run for the plant (weekly , monthly of daily)
    2)       If  after one MRP Run- some Planned Orders and some Purchase Req are converted to Production Orders and Purchase Orders. My Prod Orders- 100 Pieces and PO is 1000 Kgs.
    Now subsequently , due to change in schedule,(PIR is maintained by Sales Department and it changes  often) lets say, my PIR is Changed from 100 to 10 Pieces ,
    How can a PPC  person come to know of this and inform the Buyer to foreclose the PO or amend the PO and as well change the Prod order also.
    Thanks in Advance
    Waiting for your Reply,
    Praveen

    Hi Praveen
    1) What should be the frequency of MRP Run for the plant (weekly , monthly of daily) : Daily Basis as your demand changes frequently.
    2) PPC will understand from MD04 screen where all the result of MRP as Stock Requirement List available.U cant change Production Order while running MRP as your demand changes from 100 to 10 pecies because Prodction Orders are firmed recipept.In that case you can change quantiy , do the availablity check and scheduled again  or set TECO so that it will not show up in the MD04 screen also.
    Any changes to demand and subsequent effect can be viewed through the exception messeges column in MD04/MD05
    Hope this will help you to figure it out.
    Regards
    Jia

  • Problem with one database

    Hi, I'm having currently one problem with Siemens ACS Tool. We've one got diagram, which tells information about chillers, temperatures, pressure and etc. The message when I try to open some diagram is:
    The Microsoft Jet database engine stopped the process because you and another user are attempting to change the same data at the same time. Driver's SQSetConnectStrAttr failed
    Connectionstring:
    Driver={Microsoft Access Driver (*mdb)};Dbq=C:\Documents and Settings\All Users\Documents\Siemens\ACS790\Plants\HOTEL ****\HOTEL ****.plx;Uuid=;Pwd=;
    I can't contact the support, they're too busy these days and I'm trying to get help from somewhere.

    Starting with the total lack of version numbers you have posted far too little information for anyone to help you.
    For example: Insert data using what tool?
    And there are dozens of other important facts you have not stated.

  • Problem with field-symbol values not updating

    H i ,
          I have following piece of code :
    Assigning Dynamic Table to Field Symbol
        ASSIGN ist_dyn_table->* TO <gs_dyn_table>.
    *   Creating Structure for dynamic table
        CREATE DATA gs_dyn_line LIKE LINE OF <gs_dyn_table>.
    *   Creating line type for the Dynamic Values
        ASSIGN gs_dyn_line->* TO <gs_line>.
    *   Populating values in the dynamic table
        LOOP AT ist_pwcl_main INTO wa_pwcl_main.
          ASSIGN COMPONENT gc_fld_werks OF STRUCTURE <gs_line> TO <gs_field>.
       1   IF sy-subrc EQ 0.
       2        <gs_field> = wa_pwcl_main-werks.
       3      ENDIF.
       5  IF <gs_field> IS ASSIGNED.
       6     <gs_field> = wa_pwcl_main-vbeln.
          ENDIF.
      7 IF <gs_field> IS ASSIGNED.
      8  <gs_field> =  wa_pwcl_main-posnr.
          ENDIF.
       IF <gs_field> IS ASSIGNED.
            <gs_field> = wa_pwcl_main-quant.
          ENDIF.
    on debugging  at line 2 <gs_filed> contains the value of werks .
    but at line 6 <gs_field> contains value of vbeln as 0 and at 8 of posnr as 0 .
    What can be the problem ? Other values are getting assigned properly .
    Plz help ...
    Regards .

    Hi,
    Assigning Dynamic Table to Field Symbol
        ASSIGN ist_dyn_table->* TO <gs_dyn_table>.
      Creating Structure for dynamic table
        CREATE DATA gs_dyn_line LIKE LINE OF <gs_dyn_table>.
      Creating line type for the Dynamic Values
        ASSIGN gs_dyn_line->* TO <gs_line>.
      Populating values in the dynamic table
        LOOP AT ist_pwcl_main INTO wa_pwcl_main.
          ASSIGN COMPONENT gc_fld_werks OF STRUCTURE <gs_line> TO <gs_field>.
       1   IF sy-subrc EQ 0.
       2        <gs_field> = wa_pwcl_main-werks.
       3      ENDIF.
       5  IF <gs_field> IS ASSIGNED.
       6     <gs_field> = wa_pwcl_main-vbeln.
          ENDIF.
      7 IF <gs_field> IS ASSIGNED.
      8  <gs_field> =  wa_pwcl_main-posnr.
          ENDIF.
       IF <gs_field> IS ASSIGNED.
            <gs_field> = wa_pwcl_main-quant.
          ENDIF.
    Based on your coding above, <gs_field> has been assigned with data type 'WERKS' (i'd assume component gc_fld_werks found from structure <gs_line> is a plant typed), which is a CHAR(4) data type.
    Meaning, if <gs_field> is assigned with Plant type value, e.g. <gs_field> = '1000', field symbol <gs_field> will contain 4 character only.
    At line 6, if wa_pwcl_main-vbeln = '0000201000', <gs_field> is only capturing '0000' only. This is also happened to line 8.
    However, it looks like that <gs_field> is getting over-write if ASSIGNED statement returns SY-SUBRC = 0.
    Hope this helps.
    Regards,
    Patrick

  • Problem with a bapi fm...

    hi all,
    i have a problem with Bapi_goodmvt_create.
        CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
          EXPORTING
            goodsmvt_header  = gt_header
            goodsmvt_code    = gt_bapigm_code
            testrun                 = 'X'
          IMPORTING
            goodsmvt_headret = gs_headret
          TABLES
            goodsmvt_item    = gt_item
            return                 = gt_return.
        IF gt_return-type <> 'E'.
          CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        ELSE.
          CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
        ENDIF.
    in the error table gt_return iam getting,
    while running in the test run mode no errors are comming. but while running test run mode immediately iam getting the below error, but i havent opened the plant or material anywhere,
    "The plant data of the material 801187 is locked by the user PREM."
    help me in this issue,
    Thanks,
    Prem.

    Use WAIT for 5 seconds before COMMIT. It may work.
    Regards,
    Amit
    Reward all helpful replies.

Maybe you are looking for

  • Preview -- two windows for one file?

    Hi, I'm stumped by an amazingly simple problem: I want to have two or three Preview.app windows open (at different positions of) the same .pdf file, but I can't find any possibility short of duplicating the file, once for every window! Where's the ma

  • Blank framebuffer with nouveau

    No, I don't think it is as simple as nomodeset. I update my install about every two weeks.  After an update yesterday my framebuffer is going blank and X isn't starting.  I have had a good read around but I am quite stumped. I have tried setting a fe

  • How does edit in adobe reader

    how does edit in adobe reader?

  • Re-downloading music from the iCloud

    Hi, could somebody advise me as to whether I am able to re-download music from iCloud that was added by myself (not purchased) from CDs on a laptop that has since been master rebooted. Thanks.

  • T3i sensor size vs. full frame and how does that effect lens measurements?

    I am new to both photography and the T3i camera. I have been reading Jeff Revell's book "Canon EOS Rebel T3i / 600D: From Snapshots to Great Shots". In chapter two he talks about "Lenses and Focal Lengths". In discussing wide-angle lenses he says "As