Help regardin BAPI_MATERIAL_SAVEREPLICA

Hi Friends,
I am using BAPI_MATERIAL_SAVEREPLICA to upload the material master data.
it is updating the data successfully for Basic view, purchasing view.
but i am getting an error message saying " the field MARA-TAKLV is required field and it is not passed " when i tryed to upload the data for SalesView.
The field TAKLV is available in MARA table, but i could not able to find it in BAPIE1MARA strecture for client data of BAPI_MATERIAL_SAVEREPLICA
could any one help me in solving this issue.
it is very urgent.
Thanks,
Rama

Hi Vijay,
eventhough i pass the value for the field BAPIE1MBEW-TAXPRICE_1.
i am getting the error " The field MARA-TAKLV is defined as a required field; it does not contain an entry "
please look at the below one also once.
i am getting an error "Key fields for use data SALESDATA and checkbox structure SALESDATAX are different"
earliar with the same input when i executed i did not got this error, can any tell me what is the problem.
Thanks for kind replay,
Rama

Similar Messages

  • LOOP On ALV-GRID Display

    Hi all,
    Please help regardin the LOOPing Procedure on ALV-GRID Display.
    For tracking the chnaged data in display mode, I need it into my Progarm Internal Table.
    Thanks
    Rajeev.

    Hi Ashis,
    Add no_zero in the Field catalog.
    no_zero(1)     type c,        " write no-zero
      CLEAR wa_fieldcat.                   " Employee Number
      wa_fieldcat-fieldname = text-f02.    " EMP_NUM
      wa_fieldcat-tabname   = text-t99.
      wa_fieldcat-seltext_m = text-t02.
      wa_fieldcat-just      = c_right.
      wa_fieldcat-key  = 'X'.             
      wa_fieldcat-no_zero = 'X'
      APPEND wa_fieldcat TO itab_fieldcat.
    Thanks,
    Nelson

  • Process chain with ABAP reports included

    Hello !
    I need help regardin an issue.
    I have a process chain with the processes:
    1) Start
    2) Process type ABAP program -> report that has a wait instruction
    3) Process type ABAP program -> report that has a system message , based on a first variant of the report
    4) Process type ABAP program -> report that has a wait instruction
    5) Process type ABAP program -> report that has a system message , based on a second variant of the report
    6) Process type ABAP program -> report that has a wait instruction
    7) Process type ABAP program -> report that has a system message , based on a third variant of the report
    report that has a system message : has 3 variants
      The reports work each individual, but in the chain , when I execute, I must see some system messages and there is nothing
    I assigned for the processes the right reports, including the variants for the processes 3, 5, 7.
    Do you have some clue? I can't imagine why they don't work in this process chain.
    Thank you.

    In RSPC transaction -
    create your process chain
    To include ABAP program --- expand General Services --- Select ABAP program -
    drag and drop it in right panel
    Create process variant -
    provide program name and program variant(if exists)

  • RTP in J2ME ????

    hey...i need urgent help regardin the implementation of RTP protocol for audio transmission between two mobiles already having a UDP connection established between them.any help/suggestions/sample codes would be welcome

    Read this article it helps
    http://today.java.net/pub/a/today/2006/08/22/experiments-in-streaming-java-me.html

  • How to update a custom field of MARC table using BAPI_MATERIAL_SAVEREPLICA

    Hi,
    I want to update a custom field (Appended field) of MARC table using  BAPI_MATERIAL_SAVEREPLICA. Please help me in this issue. I cannot use BAPI_MATERIAL_SAVEDATA as this updated the MARC table record by record. I have to update bulk records at a time.
    Thanks
    Rahul.

    Hi,
    Use the Documentation given for struture in BAPI docuemntation...
    For loading data into custom fields of MARC use the structure - BAPI_TE_MARC.
    First, structures BAPI_TE_<NAME> (<NAME> = MARA, MARC, MARD, MBEW, MLGN, MLGT, MVKE, MARM, MAKT) and the appropriate check structures BAPI_TE_<NAME> (<NAME> = MARAX, for example) have to be extended by the customer to include the required fields. The structures that are delivered as standard only contain the relevant key fields. When new fields are added to this structure, you should ensure that a field has the same name as the field in the database table. Furthermore, the fields in the structures BAPI_TE_<NAME> can only be CHARACTER fields. Data element BAPIUPDATE is to be used for the fields in the check structure (exception to this: key fields.)
    Parameters EXTENSIONIN and EXTENSIONINX are used for transferring data to the method. Field STRUCTURE contains the name of the structure (for example, BAPI_TE_MARA or BAPI_TE_MARAX). This names is used to identify the work area (for example,  WA_BAPI_TE_MARA or WA_BAPI_TE_MARAX) to which the data is transferred. The remaining fields in parameters EXTENSIONIN or EXTENSIONINX contain data for the key fields (for example, the material number) and the data for customer-specific fields. The number of characters reserved in both parameters for the contents of the customer-specific fields must match the number of characters for the relevant field in the work area. If the number of required characters is less, the remaining characters are left blank. Only when all characters have been filled can the contact for an additional field be transferred. Bear in mind that only data for which an appropriate indicator has been set in the work area can be updated to the database.
    Regards,
    Bhargava

  • Material Master Upload using BAPI_MATERIAL_SAVEREPLICA

    Hi All,
    I am using BAPI_MATERIAL_SAVEREPLICA for creating materials. I am facing an issue where BAPI is not doing the validations properly. In 'Work Scheduling' View, there are some fields which gives error in MM01 transaction. But BAPI posts successfully even with that data. Can anyone please help me in solving this issue. Below are the parmeters passed to the BAPI. Header data and other details are also passed.
    noappllog = 'X'
    nochangedoc = 'X'
    testrun = space
    inpfldcheck = space
    Thanks,
    Deepti

    Hi.
    Did you set
    'X'
    for
    HEADDATA-WORK_SCHED_VIEW
    parameter?

  • Issue with BAPI_MATERIAL_SAVEREPLICA in ECC 6.0

    Hi All,
    I am facing a strange issue in creating a Material using BAPI_MATERIAL_SAVEREPLICA.
    When I try creating a Material with this BAPI, the Material does get created, but the problem is, I am not able to update the Net Weight field with this approach.
    The funny thing is, I am able to update this same field with the same set of code in SAP 4.7 version.
    I am facing this issue only in the ECC 6.0 environment.
    I am passing the Net Weight field in the CLIENTDATA structure.
    Is there any additional field that I need to pass to any structure in ECC6.0 to achieve this?
    I dont get a clarity from reading the BAPI's documentation.
    Any pointers in this direction will be highly helpful.
    Thanks & Regards,
    Keerthi

    Hi,
    Its not a Z field that I am talking about.
    Its the Net Weight field - MARA-NTGEW.
    This field is not getting updated though I am passing this field as part of the MARA structure to the BAPI - BAPI_MATERIAL_SAVEREPLICA.
    The material I am trying to create is a Service type material.
    For Service type materials, the Std. Screen for usually does not show the Weight fields at all, but on passing the value in the BAPI updates the MARA table in the database.
    Moreover, the same piece of code is working in my SAP 4.7 system and the issue is only seen in the SAP ECC 6.0 system.
    Any suggestions in the direction of finding a resolution to this problem will be of great help.
    Thanks & Regards,
    Keerthi

  • Use BAPI: BAPI_MATERIAL_SAVEREPLICA to update customer field in MARC

    HI All,
    I will use the BAPI BAPI_MATERIAL_SAVEREPLICA to update a customer field in database table MARC. For that I have extended the structures BAPI_TE_E1MARC and BAPI_TE_E1MARCX with the customer field.
    Afterwards I have filled the tables EXTENSIONIN and EXTENSIONINX with the corresponding value for the update. Addtionally I have added the field in transaction OMSR (setting to display in the field selection, because the field should not maintenance over the standard transaction MM01 and MM02). 
    Processing of the BAPI give no error message, but the corresponding field in table MARC won't be updated. What's going wrong? Is there somebody, who could help me?
    Thanks and best regards
    Stefan

    Hi
    Try this BAPI function module:
    " BAPI_MATERIAL_MAINTAINDATA_RT "
    Data: LS_HEADDATA TYPE BAPIE1MATHEAD,
             LS_RETURN TYPE BAPIRETURN1,
              LT_PLANT TYPE TABLE OF BAPIE1MARCRT,          LS_PLANT TYPE BAPIE1MARCRT,
              LS_PLANTX TYPE BAPIE1MARCRTX,          LT_PLANTX TYPE TABLE OF BAPIE1MARCRTX.
            CALL FUNCTION 'BAPI_MATERIAL_MAINTAINDATA_RT'
                   EXPORTING
                       HEADDATA   = LS_HEADDATA
                   IMPORTING
                       RETURN     = LS_RETURN
                   TABLES
                       PLANTDATA  = LT_PLANT
                       PLANTDATAX = LT_PLANTX.
    Check the PLANTDATA in the above fm in which pass your ''STEUC'' to BAPIE1MARCRT-CTRL_CODE......
    Hope this works.....

  • Authorisation Issue in BAPI_MATERIAL_SAVEREPLICA

    Hello Experts,
    We have created Zprogram to update the material master using BAPI_MATERIAL_SAVEREPLICA . And we have restricted this program only to users who have authorization object M_MATE_STA assigned with ACTVT = 2 & STATM = 'G' (Costing view).
    Also, I have added cost_view = 'X' with material number and in BAPI Table parameter's "HEADDATA","VALUATIONDATA","PLANTDATA"
    Even after all this, I don't know why BAPI is trying to open "QUALITY_VIEW", due to which report output is "No Authorisation to Quality view" even though user has only for Costing view and updating only costing information.
    Please help on this..

    Could you Insure that no field that you change/create in PLANTDATA view are related to quality tab/authorization, even implicitly if creation of record ?
    Also don't forget that the system first try to create the data (as MM01) and only then update existing data (as MM02) so some wrong error messages can appear in return parameter when update is actually allowed (ref 545626 - FAQ: Data transfer problems) -> look at RETURNMESSAGES for message MK102 'trying to create...' / error / MK130 'trying to change...' /success / if this is the case execute the commit.
    Regards,
    Raymond

  • Problem with threads and simulation: please help

    please help me figure this out..
    i have something like this:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class DrawShapes extends JApplet{
         private JButton choices[];
         private String names[]={"line", "square", "oval"};
         private JPanel buttonPanel;
         private DrawPanel drawingArea;
         private int width=300, height=200;
         public void init(){
              drawingArea=new DrawPanel(width, height);
              choices=new JButton[names.length];
              buttonPanel=new JPanel();
              buttonPanel.setLayout(new GridLayout(1, choices.length));
              ButtonHandler handler=new ButtonHandler();
              for(int i=0; i<choices.length; i++){
                   choices=new JButton(names[i]);
                   buttonPanel.add(choices[i]);
                   choices[i].addActionListener(handler);
              Container c=getContentPane();
              c.add(buttonPanel, BorderLayout.NORTH);
              c.add(drawingArea, BorderLayout.CENTER);
         }//end init
         public void setWidth(int w){
              width=(w>=0 ? w : 300);
         public void setHeight(int h){
              height=(h>=0 ? h : 200);
         /*public static void main(String args[]){
              int width, height;
              if(args.length!=2){
                   height=200; width=300;
              else{
                        width=Integer.parseInt(args[0]);
                        height=Integer.parseInt(args[1]);
              JFrame appWindow=new JFrame("An applet running as an application");
              appWindow.addWindowListener(
                   new WindowAdapter(){
                        public void windowClosing(WindowEvent e){
                             System.exit(0);
              DrawShapes appObj=new DrawShapes();
              appObj.setWidth(width);
              appObj.setHeight(height);
              appObj.init();          
              appObj.start();
              appWindow.getContentPane().add(appObj);
              appWindow.setSize(width, height);
              appWindow.show();
         }//end main*/
         private class ButtonHandler implements ActionListener{
              public void actionPerformed(ActionEvent e){
                   for(int i=0; i<choices.length; i++){
                        if(e.getSource()==choices[i]){
                             drawingArea.setCurrentChoice(i);
                             break;
    }//end class DrawShapes
    class DrawPanel extends JPanel{
         private int currentChoice=-1;
         private int width=100, height=100;
         public DrawPanel(int w, int h){
              width=(w>=0 ? w : 100);
              height=(h>=0 ? h : 100);
         public void paintComponent(Graphics g){
              super.paintComponent(g);
              switch(currentChoice){
                   case 0:     g.drawLine(randomX(), randomY(), randomX(), randomY());
                             break;
                   case 1: g.drawRect(randomX(), randomY(), randomX(), randomY());
                             break;
                   case 2: g.drawOval(randomX(), randomY(), randomX(), randomY());
                             break;
         public void setCurrentChoice(int c){
              currentChoice=c;
              repaint();          
         private int randomX(){
              return (int) (Math.random()*width);
         private int randomY(){
              return (int) (Math.random()*height);
    }//end class drawPanel
    That one's from a book. I used that code to start with my applet. Mine calls different merthod from the switch cases. Say I have:
    case 0: drawStart(g); break;
    public void drawStart(Graphics g){
      /* something here */
    drawMain(g);
    public void drawMain(graphics g){
    g.drawString("test", x, y);
    //here's where i'm trying to pause
    //i've tried placing Thread.sleep between these lines
    g.drawLine(x, y, a, b);
    //Thread.sleep here
    g.drawRect(x, y, 50, 70);
    }I also need to put delays between method calls but I need to synchronize them. Am I doing it all wrong? The application pauses or sleeps but afterwards, it still drew everything all at once. Thanks a lot!

    It is. Sorry about that. Just answer any if you want to. I'd appreciate your help. Sorry again if it caused you anything or whatever. .n_n.

  • Query Help

    Table1:
    ou store point
    LS LIB1 50
    LS LIB1 200
    LS LIB1 100
    LS LIB1 79
    I have to insert table1 to table2 by splitting into every 143point and assing serial number for every 143 from parameter.
    in aboce example we can split 3 time 143 like below table2 sample.
    Table2
    ou store point serial_number
    LS LIB1 50 101
    LS LIB1 93 101
    LS LIB1 107 102
    LS LIB1 36 102
    LS LIB1 64 103
    LS LIB1 79 103
    i tried below procedure its not working.
    table may have any order like below.
    Table1:
    ou store point
    LS LIB1 200
    LS LIB1 50
    LS LIB1 100
    LS LIB1 79
    then table2
    ou store point serial_number
    LS LIB1 143 101
    LS LIB1 57 102
    LS LIB1 50 102
    LS LIB1 36 102
    LS LIB1 64 103
    LS LIB1 79 103
    create or replace procedure assign_serial(from_num number,to_num number) is
    bal number(10);
    begin
    bal := 0;
    for c1 in(select * from table1)
    loop
    if c1.point <=143 then
    if bal=0 then
    bal=143-used;
    insert int0 table2 values(c1.ou,c1.store,used);
    elsif used > 0 then
    used=used-bal;
    insert int0 table2 values(c1.ou,c1.store,bal);
    bal=0;
    if used > 0 then
    insert int0 table2 values(c1.ou,c1.store,used);
    end if;
    bal:=143-used;
    end if;
    end loop;
    end;
    How to split and assign serial number,please hELP.

    .after giving serial num i have to change points in table1 to 0.The problem for SUm and split for every 143 is ,different OU and store is there.we have to know for which store points we earned serial number.
    i hope this below logic little satisfy except assign cardnum,please........ check and currect the logic
    LS LIB1 50
    LS LIB1 200
    LS LIB1 100
    LS LIB1 79
    --variable used and bal
    for c1 in(select * from table1)
    loop
    used := c1.points;
    if c1.point <=143 then
    if bal=0 then
    bal=143-used;
    insert int0 table2 values(c1.ou,c1.store,used);
    elsif used > 0 then
    used=used-bal;
    insert int0 table2 values(c1.ou,c1.store,bal);
    bal=0;
    if used > 0 then
    insert int0 table2 values(c1.ou,c1.store,used);
    end if;
    bal:=143-used;
    end if;
    end loop;

  • Help my safari doesnt open and gives me a crash report

    help my safari doesn't open and gives me a crash report ever since i downloaded a file from the internet. I have a macbook air (early 2014) with running os x yosemite version 10.10.1

    There is no need to download anything to solve this problem.
    You may have installed the "Genieo" or "InstallMac" ad-injection malware. Follow the instructions on this Apple Support page to remove it.
    Back up all data before making any changes.
    Besides the files listed in the linked support article, you may also need to remove this file in the same way:
    ~/Library/LaunchAgents/com.genieo.completer.ltvbit.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those you find, remove them as well.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, then you may have one of the other kinds of adware covered by the support article. Follow the rest of the instructions in the article.
    Make sure you don't repeat the mistake that led you to install the malware. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates
    if it's not already checked.

  • Apple Mini DVI to Video Adapter is not working. Please Help...

    I bought an Apple Mini DVI to Video Adapter to connect my Macbook to a TV using normal video cable. When I connect the cable, my Laptop DIsplay gives a flickr once and then it shows nothing. I checked Display in the system preference where I don't get a secondary monitor option. My TV is panasonic and it's an old one. I work on Final Cut Pro and it's very very important to see my videos on a TV. What am I doing wrong with the connection? Anyone Please Please help...

    Your probably not doing anything wrong. There are thousands of users with Similar issues and it seems to be with many different adapters.
    We have Mini DP to VGA (3 different brands) and they all fail most of the time. This seems more prevalent with LCD Projectors. I've tested some (50+) with VGA Monitor (HP) and they all worked, LCD Projector (Epson, Hitachi, and Sanyo) and they all fail, DLP Projector (Sanyo) and one worked.
    My Apple Mini DP to DVi works most of the time. My Mini DP to HDMI (Generic non Apple) works every time.
    The general consensus is that Apple broke something in the OS around 10.6.4 or 10.6.5 and its not yet fixed. As we are a school we have logged a case with the EDU Support group so will see what happens.
    Dicko

  • Mini dvi to video adapter help pleaseeeeeeeeeeeeeeeeeeeeeeeeee

    right,
    ive got a 20" intel imac. i bought a mini dvi to video adapter.it said it works with the intel macs.
    i maybe being a bit thick here but the end of the dvi seems to be a different size to the port on the mac.
    please help....................

    You might find relief in the iMac Forum. Perhaps they will appreciate your distinctive thread header style more fully.
    good luck.
    x

  • PSE icons instead of the photo. I need to view photos at a glance. Please help me????

    Please help, this is driving me crazy.  I have downloaded my free PSE #9, it came with my Leica Camera.  I cannot view at a glance any of my photos.  There is only an icon that reads, PSE.  To view any of my photos, I must click select and then preview.  This gets old, and I am doing 4 times the work. I am having to use the dates to guess where my photos might be.  I hate this!  My old Photo Shop #5 didn't do this.  When you went to my pictures, you could see every photo.
    I have tried the right click and open as any program.  What ever program I choose, that is the icon that appears.  No photo. Still no good.
    Please help.
    Thanking anyone in advance,
    Leica

    Hi,
    Are you using Windows Explorer to view the files?
    If so, load Explorer, go to the Tools menu and select Folder Options.
    Click on the View tab and make sure the first option (Always show icons, never thumbnails) is not checked.
    Click on OK and see if that is any better.
    Brian

Maybe you are looking for