Material creation without user intervention

i have to create a material without user intervention. i am using BAPI_MATERIAL_SAVEDATA for this. it is not showing any error. but the return is having the message 'No description found'. how to transfer the description to this bapi.
this is the code i am trying:
DATA:  mnum like zmara01-mno,
       mat_data like BAPIMATHEAD,
       plantx_data like BAPI_MARCX,
       salesx_data like BAPI_MVKEX,
       sale_data like bapi_mvke,
       plant_data like bapi_marc,
       mate_data like bapi_makt,
       E1BP_MAKT like E1BP_MAKT,
       cli_data like bapi_mara.
DATA: E_RETURN LIKE BAPIRET2.
data: MATERIALDESCRIPTION like BAPI_MAKT
                  occurs 0 with header line.
*data: m(18) type c.
CALL FUNCTION 'NUMBER_GET_NEXT'
        EXPORTING
          NR_RANGE_NR                  = '01'
          OBJECT                       = 'ZMNUMBER'
         QUANTITY                      = '1'
       IMPORTING
         NUMBER                        = mnum.
message i003(zmsg) with mnum.
mat_data-material = mnum.
mat_data-ind_sector = 'I'.
mat_data-matl_type = 'DIEN'.
mat_data-basic_view = 'X'.
cli_data-base_uom = 'EA'.
cli_data-base_uom_iso = 'X'.
sale_data-sales_org = 'EISO'.
sale_data-distr_chan = 'SR'.
salesx_data-sales_org = 'EISO'.
salesx_data-distr_chan = 'SR'.
plant_data-plant = 'EIHO'.
plantx_data-plant = 'EIHO'.
CALL FUNCTION 'BAPI_MATERIAL_SAVEDATA'
  EXPORTING
    HEADDATA                   = mat_data
   CLIENTDATA                 = cli_data
  CLIENTDATAX                =
   PLANTDATA                  = plant_data
   PLANTDATAX                 = plantx_data
  FORECASTPARAMETERS         =
  FORECASTPARAMETERSX        =
  PLANNINGDATA               =
  PLANNINGDATAX              =
  STORAGELOCATIONDATA        =
  STORAGELOCATIONDATAX       =
  VALUATIONDATA              =
  VALUATIONDATAX             =
  WAREHOUSENUMBERDATA        =
  WAREHOUSENUMBERDATAX       =
   SALESDATA                  = sale_data
   SALESDATAX                 = salesx_data
  STORAGETYPEDATA            =
  STORAGETYPEDATAX           =
  FLAG_ONLINE                = ' '
  FLAG_CAD_CALL              = ' '
  NO_DEQUEUE                 = ' '
IMPORTING
   RETURN                     = E_RETURN
TABLES
   MATERIALDESCRIPTION        =  MATERIALDESCRIPTION
  UNITSOFMEASURE             =
  UNITSOFMEASUREX            =
  INTERNATIONALARTNOS        =
  MATERIALLONGTEXT           =
  TAXCLASSIFICATIONS         =
  RETURNMESSAGES             =
  PRTDATA                    =
  PRTDATAX                   =
  EXTENSIONIN                =
  EXTENSIONINX               =
loop at materialdescription.
message I004(I) with materialdescription-matl_desc.
endloop .
MESSAGE I004(I) WITH E_RETURN-TYPE.
    if sy-subrc = 0.
     message i005(zmsg).
    elseif sy-subrc <> 0.
     message e006(zmsg).
    endif.
i am trying to give direct entries to test it . please help in this issue immediately.

Hi dear,
welcome on board!
If you want an answer immediately I think you have to post your question in a more appropriate forum...
take a look to https://www.sdn.sap.com/sdn/collaboration.sdn and choose one of the available forums !
Good luck!
Roberto

Similar Messages

  • Generate a Report Dynamically without User Intervention and Output to XML

    Here's the scenario for which I am trying to find a solution. Any help would be greatly appreciated.
    I have a series of reports that the users generate from a UI by selecting the report, setting the values for a list of parameters, and then click a submit button. The report is generated in the UI for them to view. They can print it from here or export it to Excel.
    They would like to be able to schedule a report to run daily without user intervention using a saved set of parameters. The system would run the report automatically and email it to a defined set of email addresses.
    To do this, we need to have the report generated in a string or xml so a Java process can read it and email it.
    I see that I can change a report's template to export:xml so I feel that it is possible. How can I export a report to XML without user intervention? Can the report template be changd dynamically at runtime? Ideally, I need some way to call this same report and have it output as a string data or xml to be used by a Java process that would store and generate the report for email.

    Hi Kumar,
    From Program1 you are calling Program2, using submit syntax (inside Program1).
    While using submit, if you have correctly filled up the selection screen of program2, then it will AUTOMATICALLY get executed, WITHOUT F8.
    If there is any compulsary field in program 2, which does not get populated, then it will not run automatically, or unless some special code is written in program2.
    If you do not want the output of Program2 on screen, then u can use
    SUBMIT Program2 AND RETURN.
    In that case, no selection screen (of program2) will appear and neither the output of program 2.
    Regards,
    Amit Mittal.
    Edited by: Amit Mittal on Dec 23, 2009 4:10 PM

  • Can You Play Multiple Playlists Without User Intervention

    Can you stack and play multiple playlists? ie if you had three playlists of 50 songs each, could you pick all three, play all the songs in the first playlist, when it is finished move automatically to the second playlist play its songs then automatically move to the third without user intervention? And if so, can you play each of these in shuffle mode?

    There's no "impromptu" method of doing so that I know of.
    As far as un-impromptu methods (it's always fun inventing words), it will depend on whether you want to listen to this mega-playlist on an iPod or just with iTunes.
    If it's just with iTunes, you can go to the File menu > New Folder command and create a new folder which we can call the Mega-Playlist folder. Drag the three playlists in question into that folder. When you select that folder and press Play, iTunes should go through all the songs.
    If it's on an iPod, since Folders don't transfer over from iTunes, the only solution I know of would be to create a Smart Playlist with iTunes that will -
    Match any of the following rules:
    Playlist is the first playlist +
    Playlist is the second playlist +
    Playlist is the third playlist.
    Synching this mega-playlist to your iPod will allow you to select it from the Playlist menu.
    Shuffle mode would shuffle songs from all three playlists together, not shuffle songs from the first playlist before moving on to shuffling songs from the second playlist before shuffling songs from the third playlist.

  • Animate elements one by one without user intervention

    Hi, Good Day,
    I have series of rectangles and textblocks on page.
    I need to show them moving at different places one by one according to the contents of textblock without user intervention.
    If I use for loop then it show movement of only last rectangle as I have to stop the storyboard in each iteration of loop.
    Is there any way to move these rectangles automatically one after another????
    sunaina

    A storyboard has a completed event.  I think that's the easiest way to handle this sort of requirement.
    You could chain them.
    So you get a reference to a storyboard, add a handler to it's completed event which starts the next storyboard...
    And start it.
    Obviously you will have storyboards which do something or other but here's how I attach anonymous completed eventhandlers to a storyboard:
    Storyboard sb1 = new Storyboard();
    Storyboard sb = new Storyboard();
    sb.Duration = new TimeSpan(0, 0, 1);
    sb.Completed += new EventHandler(delegate(object s, EventArgs a)
    sb1.Begin();
    sb.Begin();
    Hope that helps.
    Recent Technet articles:
    Property List Editing;  
    Dynamic XAML

  • [CS4]  save on a local file without  user intervention

    hey,...sorry for my english...
    i work with a other application who need to have the
    information written in the local file without an user intervention
    so...
    i would like to know if it s possible to write or rewrite on
    a local file without intervention of the user...
    whitout the ""save dialogue box" or with a managed save
    dialogue box...
    how to write in a local file without user intervention...
    i need really an answer to make real my project...
    thans for your conprehension

    hey
    thx a lot for your help ...
    if i understand well ...
    it is possible to write or rewrite in a specific folder
    who is determinated by the application folder of
    an specific AIR apllication
    who during his install give the ""authorization to
    write/rewrite /save in his specific installation foder"
    so it s possible with combination of an AIR application.....
    can you give me some information about this AIR application
    that i must build...
    some direction to ask help
    because i dont have the knowledges to do that
    what style/type of AIR application
    what charachteristics of this AIR application....
    so some information that can i use to ask help in the good
    place...
    one more time thx a lot for your help...;)

  • Automated vendor block on creation without user inputs

    Hi All,
    I want to block the vendor in creation without user inputs:
    Not in T-code mk01<extras<blocked data, and definiately not after creating the vendor and using t-code MK05.
    How i can change a field in table LFA1 while creating the vendor.
    the field that i want to set is LFA1-SPERM (for all purchasing Org).
    Please suggest if you have any ideas how this can be done.
    Thanks,
    Mamta

    Hi,
    Not sure your issue was solved already.
    However, if not resolved already try this
    create an explicit enhancement in include MF02KFV0
    ENHANCEMENT 3  ZFI_VENDOR_CREATE.  
    IF SY-TCODE = 'MK01''.
    LFA1-SPERM = `X`.
    ENDIF.
    ENDENHANCEMENT.
    Enhancement Spot :ES_MF02KFV0   
    Program: MF02KFV0  
    Enhancement Implementation type: Dynamic Enhancement Point
    Enhancement Implementation POint:  \IC:MF02KFV0\EX:VERBUCHUNGSAUFRUF_02\EI
    Regards
    Raja

  • Spaces are switching without user intervention

    I generally use 4 spaces and I've noticed on Mavericks apps will not stay ont he same space they are assigned too. I've also noticed designated spaces switching without any user intervention. For example "Desktop 3" and "Desktop 4" switch places and 4 will become 3 and visa versa. Has anyoen else encountered this?

    I am also experiencing problems where I lose a route and I get disconnected from the internet. I get it back by issuing a command:
    route get 192.168.2.1 (my wireless router)
    route get 192.168.1.254 (my DSL modem)
    However, I have no idea why this gets deleted in the first place.
    if you discover an answer please do post it here.
    Thanks,
    Ted

  • Events without user intervention

    I am developing a control application in which in open loop the user has interaction with controls in the GUI and a generation of events begin an action. However in closed loop the controller generates the values and rewriten the values at the controls in the GUI without intervention of user in the GUI. The events are not identified within the events loop located within the white loop. I am trying to work with Dynamically Registering Events but i am not have sucess. The specific question is how generated an event when a value control changes  without the intervention of the user in the GUI

    Use a property node for the front panel control and select the property
    "Value (Signaling)". When writing to this property, the event is
    triggered.

  • Events/without user intervention at the GUI

    I am developing a control application in which in open loop the user has interaction with controls in the GUI and a generation of events begin an action. However in closed loop the controller generates the values and rewriten the values at the controls in the GUI without intervention of user in the GUI. The events are not identified within the events loop located within the white loop. I am trying to work with Dynamically Registering Events but i am not have sucess. The specific question is how generated an event when a value control changes  without the intervention of the user in the GUI

    Gracias por utilizar los foros
    la solucion ya la tienes en esta liga
    http://forums.ni.com/ni/board/message?board.id=170&message.id=196808#M196808
    saludos
    Erwin Franz R.

  • HOw to download a file in background without user intervention?

    Hello people,
    A few hours ago I asked a couple of guys how to download a file to html. For that I am most thankful, and as mentioned this is a two part question, my other question is about how to proccess downloading the html in background and to automatically send it to a folder or other path. Without any user intervention.
    Example, I run a long report to be downloaded in background. The lets say the next day, I can get the file in a folder. Thanks guys take care!

    Hello guys thanks for your help so far. I have been off again on again with this task because its more for future purposes than anything.
    So far I have searched the net and stuff and decided that I will use WWW_LIST_TO_HTML since I want to download it the way it is. I am also going to use open/close dataset as many of you have mentioned.
    SO far Im just trying it out with a simple report program to see its funcitonalities. My code goes like this.
    <b>REPORT ZCCYT_COOL2 NO STANDARD PAGE HEADING LINE-COUNT 100 .
    DATA: IFIELDS TYPE TABLE OF W3FIELDS WITH HEADER LINE.
    *DATA: ihtml   TYPE TABLE OF w3html   WITH HEADER LINE.
    DATA: IHTML   TYPE TABLE OF W3_HTML  WITH HEADER LINE.
    DATA: BEGIN OF I_TAB OCCURS 0,
            MATNR LIKE MAKT-MATNR,
            MAKTX LIKE MAKT-MAKTX,
          END OF I_TAB.
    SELECT-OPTIONS: SO_MATNR FOR I_TAB-MATNR.
    SELECT MATNR MAKTX
      FROM MAKT
      INTO TABLE I_TAB
      WHERE MATNR IN SO_MATNR..
    LOOP AT I_TAB.
      WRITE: / I_TAB-MATNR,
               I_TAB-MAKTX.
    ENDLOOP.
    CALL FUNCTION 'WWW_LIST_TO_HTML'
       EXPORTING
           list_index = sy-lsind
         TABLES
              HTML       = IHTML.
    DATA: FILE TYPE LOCALFILE.
    FILE = '/usr/test.html'.
    OPEN DATASET FILE FOR OUTPUT IN BINARY MODE.
    LOOP AT IHTML.
      TRANSFER IHTML TO FILE.
    ENDLOOP.
    CLOSE DATASET FILE.</b>
    NOw the problem now though is that the file isnt downloading or saving at all. I cant seem to get what is wrong since the path does exist and the this seems the universal way to implement the program. Im guessing the problem lies in the file name, because everything seems to work fine. Hope to hear again soon sorry for not visiting this place sooner cuz I was buzy elsewhere.

  • Force shortcut creation without user's prompt

    Is there any way i can force Shortcut creation even if the user selected "No" and this without changing Java panel's settings?
    I'm using Java *1.5.0_05-b0*5.
    thx
    Rasel

    Welcome to the Sun forums.
    raselghul wrote:
    Is there any way i can force Shortcut creation even if the user selected "No" and this without changing Java panel's settings?I hope not! But I tell you what, if you figure out a way, please let us know. I'll raise a bug report with Sun and get it fixed.
    thxThat word is 'thanks', unless you are claiming to be THX-1138's relative.

  • How can I map a drive to Azue file shares without user intervention or having a user logged on?

    I have the file share created, and can manually map the drive. I have even created a batch file that will create the drive mapping.  One step further, I used the following regedit to create the mapped drive:
    Regedit:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    add new string value:
    value name:  MapS
    value data:  c:\azurefileshare.bat
    I have a scheduled task running a batch file running the net use command, and the drive is available, and I can create/delete files, so access is not an issue.
    All works fine if I log onto the server, however, what I am trying to accomplish, is to have that drive mapped upon reboot without having a user log on.   Checking the log file running the net use command when no one is logged on, I get the following:
    Status       Local     Remote                    Network
    Unavailable  S:        path of file share
    Microsoft Windows Network
    The command completed successfully.
    New connections will be remembered.
    Is there a way to accomplish this?  Thanks in advance.

    Hello wdick,
    Thank you for your response and getting back on this issue. I am sorry that the blog that I referred to was not available. I pretty much thought that you must be referring to the ‘File Services’ which is in preview yet. I recently had another user with a similar
    question but currently, the users can access the files using only 'Interactive logon'. You can refer to this link: 
     http://social.msdn.microsoft.com/Forums/en-US/1f1fa9b5-a81d-4067-9d90-2c7c47667732/azure-file-services-authentication-without-prompt-passthrough?forum=windowsazuredata 
    Thanks.
    Syed Irfan Hussain

  • Material creation without specifying plant

    can i create a material without specifying a plant or storage location?is it possible.?what are differnt types of stocks in gr.

    Dear Kunal,
    You would need to give plant for plant relevant views. However, you would not need to give plant for views like Basic Data which is valid for entire organization.
    Different Stocks:
    1. Unrestricted Use of Stock
    2. Quality Inspection Stock
    3. Blocked Stock
    Special stocks and special procurement types are divided into the following areas:
    · Consignment
    · Subcontracting
    · Stock transfer using stock transport order
    · Third-party processing
    · Returnable transport packaging
    · Pipeline handling
    · Sales order stock
    · Project stock
    Regards,
    Naveen.

  • Saving a modified word document without user intervention

    Dear Reader,
    I have successfully opened a template (MS Word document), and
    modified the bookmarks using DDE; however, now in attempting to
    save the document without the user having to respond I am having
    problems. I have attempted to use DDE.EXECUTE(ConvId,'[Save
    ()]',1000); but this drops into the VB debugger and nothing is
    saved. If I remove the "[]" then an error occurs. If I attempt
    to place something with the brackets () an error occurs within
    the VB Debugger.
    Looking for a simple coding example using DDE.
    Thanks in advance.
    Gerry

    Hi Tina,
    I would first suggest installing all available updates to his/her system and Office installation, including updating the video card driver to the latest version. Then try again.
    Also try to do a Windows clean boot to determine if the issue was caused by any applications/services conflicts:
    http://support.microsoft.com/kb/929135/en-us
    Regards,
    Ethan Hua
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Force Apple Software Updates to Install Without User Intervention?

    I have a Mac server (Yosemite 10.10.2) that pushes certain Apple software updates to my client iMacs (Mavericks 10.9.4).  For example I want to update the Apple Remote Desktop client on all of the clients.  Once I log into a client machine I see that the update is available and has been received from my Mac server.  The problem is that it is not installed.  It appears that I would have to visit each machine and log in and then click install to get this done.  I have to believe there is a way to get this done without having to visit every machine.  Any ideas would be appreciated.

    You might want to look at implementing Munki. Munki is mainly intended as a means of distributing both initial Application installs, but also updates for those applications, e.g. Microsoft Office. It can however also automate installing Apple Software Updates. Importantly it does not require the end user to ever enter any administrator details to allow these updates to be installed.
    See https://code.google.com/p/munki/wiki/AppleSoftwareUpdatesWithMunki
    (Munki is free.)

Maybe you are looking for

  • Answer report as pdf

    I have requirement where I have two reports, summary and detailed report. Summary report is in the dashboard. The requirement is to display a hyperlink/url for the detailed report. When a user clicks on this link a pdf of detailed report should open.

  • Connecting iPhone to Wifi

    I have an old iPhone 3G and I reset the entire phone. Now every time I try to connect to wifi it says it is unable to join the network. Why is this?

  • Com.sapportals.portal.ivs.cg.ConnectionProperties jar file location ?

    Hi , Could anyone let me know the exact jar location for com.sapportals.portal.ivs.cg.ConnectionProperties class for NW04s SP11 . Thanks. Regards Vasudevan

  • Convert part of pdf document to word

    I need to convert part of a document to word not the whole document as is way to big and  i do neot need the other parts. can I do that and how?

  • Query to retrieve all unreconciled BP account transactions

    Hi, can anyone help me to formulate a SQL query to retrieve only the unreconciled transactions from a business partner account.  In other words all the records that display in the account balance enquiry when you tick the "Display Unreconciled Trans.