Creation of Materials Using MATERIAL_MAINTAIN_DARK

Hello All,
Im trying to create Materials using the Function Module MATERIAL_MAINTAIN_DARK in program. Problem is that, In tables of the fuction module amarc_ueb, amakt_ueb and amard_ueb , Im passing 2 records in each tables. But the MARC, MAKT and MARD tables are populated with only one record in each loop pass.
Please give me suggessions to solve this problem.
Good answers will be appreciated.
Thanks in advance.
Best Regards,
Sasidhar Reddy Matli.

Hello Ajay,
Please find my code below..
* Create Material - Check for KZ_TEST for test
  CALL FUNCTION 'MATERIAL_MAINTAIN_DARK'
   EXPORTING
    flag_muss_pruefen               = 'X'
*    SPERRMODUS                      = 'E'
    max_errors                      = 0
    p_kz_no_warn                    = 'E'
    kz_prf                          = ' '
    kz_verw                         = 'X'
    kz_aend                         = 'X'
    kz_dispo                        = 'X'
    kz_test                         =  kz_test
    no_database_update              = ' '
    call_mode                       = 'ACT'
*   CALL_MODE2                      = ' '
    user                            = sy-uname
*   SUPPRESS_ARRAY_READ             = ' '
*   FLG_MASS                        = 'X'
*   DONT_PROCESS_HEADERS            =
IMPORTING
    matnr_last                      = g_f_matnr_last
    number_errors_transaction       = g_f_number_err
   TABLES
     amara_ueb                       = gt_mara_ueb
     amakt_ueb                       = gt_makt_ueb
     amarc_ueb                       = gt_marc_ueb
     amard_ueb                       = gt_mard_ueb
*   AMFHM_UEB                       =
*   AMARM_UEB                       =
*   AMEA1_UEB                       =
     ambew_ueb                      = gt_mbew_ueb
     asteu_ueb                      = gt_steu_ueb
*   ASTMM_UEB                       =
*   AMLGN_UEB                       =
     amlgt_ueb                       = gt_mlgt_ueb
*   AMPGD_UEB                       =
*   AMPOP_UEB                       =
*   AMVEG_UEB                       =
*   AMVEU_UEB                       =
     amvke_ueb                       = gt_mvke_ueb
*   ALTX1_UEB                       =
*   AMPRW_UEB                       =
*   AMFIELDRES                      =
     amerrdat                        = gt_errs
EXCEPTIONS
   kstatus_empty                   = 1
   tkstatus_empty                  = 2
   t130m_error                     = 3
   internal_error                  = 4
   too_many_errors                 = 5
   update_error                    = 6
   error_propagate_header          = 7
   OTHERS                          = 8.
  IF NOT ( sy-subrc IS INITIAL ).
    ROLLBACK WORK.
  ELSE.
    COMMIT WORK.
Best Regards,
Sasidhar Reddy matli.

Similar Messages

  • My iPad shows a message "Cannot find AirPrint printer". I used to use my iPad to print materials using HP wireless printer D110. Now it does not want to print. Is this because I am now using IOS 7? What should I do to solve the problem? Help please.

    My iPad shows a message "Cannot find AirPrint printer". I used to use my iPad to print materials using HP wireless printer D110. Now it does not want to print. Is this because I am now using IOS 7? What should I do to solve the problem? Help please.

    Restart your WiFi router and printer by removing power for 30 seconds.

  • Monitoring of materials used in projects

    hi,
    we use projects for construction projects..
    at start of projects, we have list of all materials needed for the project (from estimating department)
    during the project, materials and qty have changes due to variations and wrong estimates
    at the end of project, the actual materials used is different from initial estimates..
    now what i need is how to best maintain/monitor/track the materials at the beginning, during and after the project in terms of variance and change in materials and quantities..
    any input would be appreciated..
    thanks in advance..

    Hello Ramesh
    I understand your response on the plan version, but rather than a plan version, have you considered a project version.
    I have used this technique before when I want a snapshot of the project at the time of release so that I can compare changes to the dates at time of approval (effectively my baseline) against the current scheduled dates as the version dates would not be able to be changed or rescheduled.
    I did not have material ordered from projects so I cannot say whether the material/price is also captured in the version snapshot.
    You may need to develop custom reports to read the project version that is stored to compare against the current active/operating version.
    Regards
    Stuart

  • Report to Generate Materials Used for the Production of FG/SFG Materiak

    Dear Experts,
    I am working for a Cement Factory. CLINKER is a SFG used for the production of FG Cement.
    RMOPCK1 and FINECOAL are another SFG used for the Production of CLINKER
    RMOPCK1
         +               = CLINKER + (Different Materials) = CEMENT
    FINECOAL
    For CLINKER we will create process order every month similarly for RMOPCK1 and FINECOAL.
    RMOPCK1 is using 5 Raw materials and FINECOAL is using 1 raw material
    Limestone + Silica 1 + Silica 2 + Bauxite 1+ Ironore 1 = RMOPCK1 and
    Rawcoal = FINECOAL
    All the raw materials, SFGs are used for creating different variety of cement.
    I want to know for a certain period how much is the CLINKER produced and How much is the raw materials used for producing the CLINKER.
    When i try through KOB1 with the process orders for CLINKER it is giving me total usage ofr RMOPCK1 and FINECOAL for producing the CLINKER.
    I Want to know for ex:
    the quantity of raw materials (Limestone + Silica 1 + Silica 2 + Bauxite 1+ Ironore 1 )used for producing ex: 1000 TON of CLINKER.
    Please help. Thanks
    Edited by: simonjohn on Oct 9, 2011 6:46 PM

    Thanks

  • Creation of material using BAPI in LSMW without using material no.

    Hi SAP Gurus,
    I have a requirement of creating materials using the BAPI in LSMW.
    I tried to create a material using the BAPI (Business Object - BUS1001006 , and method - SAVEDATA) which should be created internally, but it is asking the material number to be given externally and my configuration is setup to create the material number internally.
    Even I looked into the material type which is associated with the number range and everything looks good.
    Is there any solution to create the material by using BAPI in LSMW without passing the material no. externally ?
    Appreciate your help.
    Kalikonda.

    Hi,
    it looks like it's not possible to call this BAPI wihtout material number. Here is a quote from BAPI documentation.
    When creating material master data, you must transfer the material
    number, the material type, and the industry sector to the method. You
    must also enter a material description and its language.
    Cheers

  • Creation of role using T-code PFCG in R/3

    Hi Experts,
    I have created a Role using PFCG inorder to give acess only to three T-codes(PZ09. PZ80,PZ88).
    so i have created a role intially using PFCG and incorporated PZ09 tcode in it and assigend the Role to users in R/3. it is displaying the TCode(PZ09) in Portal.
    Now again i have added PZ80 & PZ88 to the same Role in R/3, but now i am getting an error:
    Infotype 0000 does not exist.
    but whereas when i assign SAP_ALL they(PZ88 & PZ 80) are working fine.
    Is they anything i can do so that i can avoid assigning SAP_ALL Profile to the users and eliminate the Error "Infotype 0000 does not exist.
    Thanks Inadvance,
    Regards,
    Siva

    Hi,
    Thanks for your reply,
    Creation of role using T-code PFCG in R/3
    The above link has solved my issue, Thank you!
    Regards,
    Siva

  • Creation of Material using BDC Session method & global class

    Hi
    Creation of Material using BDC Session method & global class by using oops.
    can anyone plz help me out

    Hi,
    it looks like it's not possible to call this BAPI wihtout material number. Here is a quote from BAPI documentation.
    When creating material master data, you must transfer the material
    number, the material type, and the industry sector to the method. You
    must also enter a material description and its language.
    Cheers

  • Problem regarding the creation of Table using CSS.

    Hi ,
    Here I have a Problem regarding the creation of Table using CSS.
    In My Application i have a table with multiple rows(Rows are Dynamically added to the table).First i am setting the table with the following properties:
    width:900px;
    height : auto,
    Overflow : visible,
    Max-height: : 200px.
    If I use above properties,I'm getting a table with 5 or 6 rows(height upto 200px).After that i am getting the Vertical ScrollBar.
    The problem is when a table has many columns, Vertical and Horizontal Scrolls are coming at the time of setting the table. The table height is not Increasing dynamically.
    How can i use "height" property in CSS? (I want the table height to be increased when the columns are more.)
    Thanks & Regards
    Madhavi

    Hey humble user. Errr I'm trying to understand what ur trying to do. U want to create a section of a region destructively from an existing region right? If so select the option convert to new region (opt-comm-R or selecting it by right clicking). Check your audio bin to make sure. Whats the "merge" function? Are u refering to the glue tool?

  • Automatic creation of Notification using T-code IK11

    Hi Gurus,
      i got stuck in a requirement, where they want Automatic creation of notification using T-code IK11.
    I am using EXIT IMRC0001.
        Please guide me that with what logic i should go.
    Thanks
    Regards
    VICKY
    Moderator Message: Vague Question. Expecting others to do your work for you => Thread Locked.
    Edited by: kishan P on May 12, 2011 12:35 PM

    In the role give Authorization object P_ORIGIN for Infotype 0, 1 and 2. with Authorization level as R (read)
    This will resolve your issue then no need to give sap_all authorization
    Good Luck
    - Ashish

  • Disable certain fields during the creation of SC using "create limit item"

    Hi,
    I have a requirement to disable certain fields from the role "SHOP" associated with the operational purchaser role. I would like to disable the fields "Unlimited check box", "Service Agent", " Invoice Only radio button", "Unknown account assignment radio button" from the screen I get during creation of SC using the option "Create Limit Item". Also i need to disable the option "Good / Service" entry box as we are using only free text items and donu2019t want this option to be seen in the screen when using the operational purchaser role.
    Please advise how can I achieve this.
    Regards
    GGL

    Hi,
    I have a same requirement to disable certain fields from the Shopping Cart Limit Item. I would like to disable the fields  "Service Agent", "Unknown account assignment radio button" from the Detail  screen. during creation of SC using the option  Limit Item .  Also i need to make default Value "Known" and "Invoice Only". But this is in SRM 7.0. Notes You have mentioned supports only Release 5.5, But I am in Release 7.0. Any idea?
    I appreciate your help
    Thanks,
    Monica

  • To Extend material to plant using MATERIAL_MAINTAIN_DARK .

    I am tryin to extend material into plants using MATERIAL_MAINTAIN_DARK  function module.Can someone please check the code below and tell me how i should modify it to work.Is BDC a better option?
    DATA: t_amara_ueb LIKE mara_ueb OCCURS 0 WITH HEADER LINE.
    DATA: t_amarc_ueb LIKE marc_ueb OCCURS 0 WITH HEADER LINE.
    t_amara_ueb-mandt = sy-mandt.
    t_amara_ueb-matnr = it_reqdata-material.
    t_amara_ueb-tcode = 'MM01'.
    t_amara_ueb-tranc = 1.
    APPEND t_amara_ueb.
    CLEAR t_amara_ueb.
    t_amarc_ueb-mandt = sy-mandt.
    t_amarc_ueb-matnr = it_reqdata-material.
    t_amarc_ueb-werks = it_reqdata-plant.
    t_amarc_ueb-tranc = 1.
    t_amarc_ueb-KZKRI = 'X'.
    APPEND t_amarc_ueb.
    CLEAR t_amarc_ueb.
    call function 'MATERIAL_MAINTAIN_DARK'
      exporting
      flag_muss_pruefen = 'X'
    p_kz_no_warn = 'N'
    kz_prf = space
    kz_verw = 'X'
    kz_aend = 'X'
    kz_dispo = 'X'
      tables
       amara_ueb                       = t_amara_ueb
       AMARC_UEB                       = t_AMARC_UEB
    EXCEPTIONS
       KSTATUS_EMPTY                   = 1
       TKSTATUS_EMPTY                  = 2
       T130M_ERROR                     = 3
       INTERNAL_ERROR                  = 4
       TOO_MANY_ERRORS                 = 5
       UPDATE_ERROR                    = 6
       OTHERS                          = 7
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ELSE.
    COMMIT WORK.
    ENDIF.
    Thanks and Regards,
    Pratima.

    Hi ,
    Use the below code.
    DATA : lt_mara_ueb TYPE TABLE OF mara_ueb INITIAL SIZE 0,
           lt_marc_ueb TYPE TABLE OF marc_ueb INITIAL SIZE 0,
           lt_errors TYPE TABLE OF merrdat INITIAL SIZE 0.
    DATA : wa_mara_ueb TYPE mara_ueb,
           wa_marc_ueb TYPE marc_ueb,
           wa_messtab TYPE merrdat.
    DATA : l_mstring(480).
    parameters: l_matnr like mara-matnr.
    * Set up I_MARA
    REFRESH lt_mara_ueb.
    wa_mara_ueb-mandt = sy-mandt.
    wa_mara_ueb-tcode = 'MM01'.
    wa_mara_ueb-matnr = l_matnr.
    wa_mara_ueb-tranc = '0000000001'.
    APPEND wa_mara_ueb TO lt_mara_ueb.
    CLEAR wa_mara_ueb.
    SELECT SINGLE * FROM marc INTO CORRESPONDING FIELDS OF wa_marc_ueb
    WHERE matnr EQ l_matnr AND werks EQ '01FC'.
      IF sy-subrc EQ 0.
        MOVE '01BV' TO wa_marc_ueb-werks.
        wa_marC_ueb-tranc = '0000000001'.
        WA_MARC_UEB-PSTAT = SPACE.
        APPEND wa_marc_ueb TO lt_marc_ueb.
      ENDIF.
      CALL FUNCTION 'MATERIAL_MAINTAIN_DARK'
        EXPORTING
    *   FLAG_MUSS_PRUEFEN               = 'X'
    *   SPERRMODUS                      = 'E'
    *   MAX_ERRORS                      = 0
          p_kz_no_warn                    = 'N'
          kz_prf                          = 'W'
    *   KZ_VERW                         = 'X'
    *   KZ_AEND                         = 'X'
    *   KZ_DISPO                        = 'X'
    *   KZ_TEST                         = ' '
    *   NO_DATABASE_UPDATE              = ' '
    *   CALL_MODE                       = ' '
    *   CALL_MODE2                      = ' '
    *   USER                            = SY-UNAME
    *   SUPPRESS_ARRAY_READ             = ' '
    *   FLG_MASS                        = ' '
    * IMPORTING
    *   MATNR_LAST                      =
    *   NUMBER_ERRORS_TRANSACTION       =
        TABLES
          amara_ueb                       = lt_mara_ueb
    *   AMAKT_UEB                       =
          amarc_ueb                       = lt_marc_ueb
    *   AMARD_UEB                       =
    *   AMFHM_UEB                       =
    *   AMARM_UEB                       =
    *   AMEA1_UEB                       =
    *   AMBEW_UEB                       =
    *   ASTEU_UEB                       =
    *   ASTMM_UEB                       =
    *   AMLGN_UEB                       =
    *   AMLGT_UEB                       =
    *   AMPGD_UEB                       =
    *   AMPOP_UEB                       =
    *   AMVEG_UEB                       =
    *   AMVEU_UEB                       =
    *   AMVKE_UEB                       =
    *   ALTX1_UEB                       =
    *   AMPRW_UEB                       =
    *   AMFIELDRES                      =
    *   AMERRDAT                        =
    EXCEPTIONS
       KSTATUS_EMPTY                   = 1
       TKSTATUS_EMPTY                  = 2
       T130M_ERROR                     = 3
       INTERNAL_ERROR                  = 4
       TOO_MANY_ERRORS                 = 5
       UPDATE_ERROR                    = 6
       OTHERS                          = 7
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      COMMIT WORK.
    Regards,
    Raghav

  • What is an easy web-page creation program for use with MacBook Pro?

    Can anyone suggest an easy web-page creation program for use with MacBook Pro?  I have used FrontPage with my PC, but am changing to a MacBook Pro.

    It largely depends on your skill level. Do you want to write web page code, or do you want to just design something and have it turn into a web page automatically?
    If you are more of a designer, try these:
    RapidWeaver
    Freeway Pro
    Muse
    If you want to write web page code, try these:
    Coda
    BBEdit
    Dreamweaver
    If you really don't want to write the code and want the best experience for your viewers, and you want to spend the least amount of time on it, my recommendation is:
    No program at all.
    Instead, sign up with a web site company like:
    WordPress.com (hosted by them) or WordPress.org (hosted on your server)
    Squarespace
    Wix
    The reason is that these companies have fully operational, nicely designed web site templates that you just fill in with your words and pictures, and they are ready to go. They also give you these benefits:
    Already designed to the latest web standards
    Already designed to resist hackers
    Already designed to work on all browsers
    Already designed to automatically adjust the page for readability on desktop, laptop, tablet, and smartphone screen sizes
    Already designed for accessibility
    Already designed for Search Engine Optimization so that your page will be found on Google
    Already designed with social media links built in if you want
    It is not like the old days where you build a site in Front Page and you assume it will only be seen on a desktop computer. If you build it yourself with a web page program, do you have the knowledge to make a site that works on all of the different web browsers and mobile devices, and is friendly to search engines and social media? If you don't have those skills, working with a website company can be a lot better, faster, and more reliable than trying to hammer all of that out yourself using code in some app.

  • Need code for Sales order creation in oops using xi as integration server

    Need code for Sales order creation in oops using xi as integration server.

    hi rocky,
              could you pls give a bit explanation on what you are expecting.
    regards,
    Pavan

  • Table for materials used in order

    Hi,
    I need a table which having materials used in operations of perticuler PM order .
    Thanks.

    resb for reservations in order or do you need goodsmovements for order ?
    or aufm for goodsmovements
    kind regards
    arthur
    Edited by: A. de Smidt on Mar 25, 2009 9:54 AM

  • Uploading Different types of materials using BDC

    Hello Guyz,
    Could anyone please explain, How do you take care of uploading different types of Materials using BDC?
    There will be lot of Materials in my Flatfile of different Types, say Raw Material(ROH), Semi Finished Materials(HALB) , Finished Goods (FERT) and so on.
    How do you take care of the upload for different material types.
    Regards,
    Sudhir

    Hi,
      First take all fielsds in one itab,three recordings.
    Put the condition,
    If MTART = 'ROH'.
       send those fields in to another itab.
    append the itab.
    elseif mtart = 'HALB'.
       send those fields into itab1.
    append itab1.
    elseif mtart = 'FERT'.
    send those fields into itab2.
    append itab2.
    endif.
    if  not itab[] is initial.
    loop the itab
        here  ur performs
    endloop.
    endif.
    if not itab1 is initial.
    loop the itab1.
    performs.
    endloop.
    endif.
    if not itab2 is intial.
    loop the itab2.
    performs.
    endloop.
    endif.
    if it is helpful  give me the points

Maybe you are looking for

  • How to read a Oracle Forms PARAMLIST without knowing parameter names

    Hi All, Is there a way to read a Oracle Forms Paramlist on Oracle Forms (I mean read all parameters on it) without knowing any names of the parameters? I´d like to create a command line at run time and put on this command line all the parameters and

  • /BIC/FFIN_PS_6 table is missing in the database

    Hello All, We were unable to Delete requests from FIN_PS_6 , as we perform the job it is getting terminated with DBIF_RSQL_TABLE_UNKNOWN message. Found out that table /BIC/FFIN_PS_6 is missing in the database. Any clues to find how this Table got del

  • Flex fields question

    Hi, I'm trying to use flex fields in Worklist оn SOA Suite 11.1.1.4 but I cant see protected flex fields on Administration tab under weblogic, only public. Is it some new bug on 11.1.1.4 on new "feature"? How can i can enable protected flex fields? I

  • How to Use VuPoint Wand Scanner with Photoshop?

    I have recently purchased a VuPoint Magic Wand Portable Scanner. I would like to be able to use my Photoshop program with these scans. I can locate the images, open them in Photoshop, make adjustments to them, but I cannot figure out how and where to

  • Solaris 11 x86 installer hangs on boot

    I've downloaded both sol-11-1111-live-x86.iso and sol-11-1111-text-x86.iso, they both launch grub successfully, but thereafter they hang almost instantly. This is a photo of my monitor when the installer has died: [http://dl.dropbox.com/u/5487392/IMA