BAPI_REQUISITION_CREATE-way to add components

I am trying to create a purchase requsition by BAPI_REQUISITION_CREATE
but need to find a way to add components to the new purchase requisition.

Hi,
I've seen this code in some sites. See it might help you.
LOOP AT it_requisiton_items INTO wa_requisiton_items.
READ TABLE it_vbap
INTO wa_vbap
WITH KEY posnr = wa_requisiton_items-bnfpo.
v_matnr = wa_vbap-matnr18.
v_bamei = wa_requisiton_items-meins.
Build table for call to BAPI
wa_requisition_items_bapi-doc_type = eban_s-bsart.
wa_requisition_items_bapi-purch_org = v_ekorg.
wa_requisition_items_bapi-deliv_date = wa_requisiton_items-lfdat.
wa_requisition_items_bapi-preq_item = wa_requisiton_items-bnfpo.
wa_requisition_items_bapi-quantity = wa_requisiton_items-menge.
wa_requisition_items_bapi-unit = wa_requisiton_items-meins.
wa_requisition_items_bapi-material = v_matnr.
wa_requisition_items_bapi-item_cat = wa_requisiton_items-pstyp.
wa_requisition_items_bapi-acctasscat = wa_requisiton_items-knttp.
wa_requisition_items_bapi-des_vendor = wa_requisiton_items-lifnr.
wa_requisition_items_bapi-fixed_vend = wa_requisiton_items-flief.
wa_requisition_items_bapi-plant = wa_requisiton_items-werks.
wa_requisition_items_bapi-store_loc = wa_requisiton_items-lgort.
wa_requisition_items_bapi-c_amt_bapi = wa_requisiton_items-preis.
wa_requisition_items_bapi-price_unit = wa_requisiton_items-peinh.
wa_requisition_items_bapi-purch_org = wa_requisiton_items-ekgrp.
wa_requisition_items_bapi-mat_grp = wa_requisiton_items-matkl.
IF wa_requisition_items_bapi-deliv_date IS INITIAL.
wa_requisition_items_bapi-deliv_date = wa_vbap-erdat.
ENDIF. "wa_requisition_items_bapi-deliv_date
APPEND wa_requisition_items_bapi TO it_requisition_items_bapi.
CLEAR wa_requisition_items_bapi.
ENDLOOP. "it_requisiton_items into wa_requisiton_items
CALL FUNCTION 'BAPI_REQUISITION_CREATE'
EXPORTING
SKIP_ITEMS_WITH_ERROR =
IMPORTING
number = preq_no
TABLES
requisition_items = it_requisition_items_bapi
requisition_account_assignment = it_requisition_assignment
REQUISITION_ITEM_TEXT =
REQUISITION_LIMITS =
REQUISITION_CONTRACT_LIMITS =
REQUISITION_SERVICES =
REQUISITION_SRV_ACCASS_VALUES =
return = it_return
REQUISITION_SERVICES_TEXT =
REQUISITION_ADDRDELIVERY =
EXTENSIONIN =
COMMIT WORK.

Similar Messages

  • "Add components to your existing installation" disabled in SQL Server 2000 clustered installation.

    When I try to add the
    fulltext service to a named instance in
    SQLServer 2000, I see the option "Add components to your existing installation"
    in gray.
    I launched
    the installer both ways, with the services stoped and started,
    and always the same result.

    Please check the below link and try..
    http://technet.microsoft.com/en-us/library/aa197936%28v=sql.80%29.aspx
    http://www.databasejournal.com/features/mssql/article.php/3441981/Full-Text-Search-on-SQL-2000-Part-1.htm
    Raju Rasagounder Sr MSSQL DBA

  • Is there a way to add other transactions to Applications in BDT menu?

    Hi Masters!
    I'm trying to learn how BDT works. I'm trying to use it to make my own checks in some standard fields. So far I'm able to call my own function at 'View'->Further Checks. It's working fine.
    But my problem is:
    At the BDT menu (BUPT) there is only one Application (Maintain Business Partner - transaction BP). But I want to check the fields (Tax Numbers) in another transaction (BBPMAININT).
    Does this mean that I can only use the BDT controls in this transaction? (It seems to be so; I couldn’t get into my function with BBPMAININT)
    Is there a way to add other transactions to the 'Application' folder, so I can manipulate the fields, views or screens? If there is please tell me how... I checked the documentation but couldn’t figure out...
    Do you have any other ideas of how to make my validations with the standard field (withou changing the standad code)? (NOTE: there is no BADI to do this).
    Thanks in advance,
    José Omar

    Write a custom carousel.  Usually carousel components are just ULs that use something like jQuery to rotate through the LIs.  The foundation carousel component is really just designed for some specific use cases.  Generally I would just recommend rolling your own.

  • Is there a way to add images , text and button in the individual marquee of a carousel

    Is there a way to add images , text and button in the individual marquee of a carousel ?

    Write a custom carousel.  Usually carousel components are just ULs that use something like jQuery to rotate through the LIs.  The foundation carousel component is really just designed for some specific use cases.  Generally I would just recommend rolling your own.

  • How to add components to a subcontract PR using BAPI_PR_CREATE

    I am trying to use BAPI_PR_CREATE in SAP ECC 6.0 to create a Purchase Requisition with Item Category "L" (subcontracting) to be subcontracted to a vendor for repair.  Normally, in ME51N, we would add components to the PR before creating it, but I can't see any way to do that with this BAPI, and the documentation doesn't say.
    The result is an error with the following messages:
    T ID                   NUM MESSAGE
    E BAPI                 001 No instance of object type PurchaseRequisition has been created. External reference: # 1
    E ME                   154 Not possible to determine any components
    E ME                   642 Subcontracting only possible with vendor
    The error 154 (Not possible to determine any components) is the same message that would appear in ME51N if the components were not added for the repair.
    The error 642 (Subcontracting only possible with vendor) is confusing because a valid vendor number is being supplied to the FIXED_VEND field in PRITEM and the equivalent field in PRITEMX is marked with X.
    Any help would be greatly appreciated.

    Very late reply - but hoping it might help somebody in the future:
    SAP Note 1489799 - ME 154: Creating subcontracting purchase requisition w/o BOM

  • I create a birthday calendar in iCal and then click on it in iphoto at the begining of the calendar project each year.  Some how the birthday did not populate the photo calendar.  Is there a way to add the birthday iCal calendar into the calendar project?

    I created a birthday calendar to use in iphoto for calendar.  When a new calendar project is started each year, I click on it in.  Some how the birthday did not populate the photo calendar this year.  The photo calendar is almost complete.  Is there a way to add the birthday iCal calendar into the calendar project? I would prefer not to start over.

    Hi,
    If you first select the calendar on the left, so that its background is highlighted blue/grey, when you make a new events they should be added to that calendar.
    Best wishes
    John M

  • Is there a way to add two windows in the same window?

    is there a way to add two windows in the same window?

    what do you mean by your first use of the word "window"? do you mean a visible frame? a section of the gui that the user doesnt see?
    or perhaps you mean you want to add multiple tabs to a single window, so that switching between tabs shows different windows?

  • Is there any way to add dynamic parameter in sql without breaking Server Behavior

    Hello, i'm building multiple language site.. i would like to know if there is possible way to add dynamic parameter in my query, without break the server behavior.
    For example:
    mysql_select_db($database_dxc_conn, $dxc_conn);
    $query_Recordset1 = "SELECT article.articleName, article.articleDesc FROM article";
    $Recordset1 = mysql_query($query_Recordset1, $dxc_conn) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    will become something like this:
    $additionalSQL=", article.articleName_en";
    mysql_select_db($database_dxc_conn, $dxc_conn);
    $query_Recordset1 = "SELECT article.articleName, article.articleDesc $additionalSQL FROM article";
    $Recordset1 = mysql_query($query_Recordset1, $dxc_conn) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    this is just an example, my real scenarion is far more complicated than this... however this kind of approach break the server behavior and force to do hand-coding...
    i would like to know if there's better way to do such thing like this...

    viktor.iwan wrote:
    Hello, i'm building multiple language site.. i would like to know if there is possible way to add dynamic parameter in my query, without break the server behavior.
    Server behaviors are simply bits of boilerplate code automatically generated by Dreamweaver. Editing the code doesn't "break" it (unless your edits are badly written). However, once you edit the code, Dreamweaver no longer recognizes it, so you lose the ability to drag recordset results from the Bindings panel.
    If you want to edit server behavior code, the best way to handle it is to lay out your page as you want, using the Bindings panel. Once everything has been done, only then edit the server behavior code.

  • Is there a way to add to the existing values in a container when a LabVIEW prototype (cluster) changes?

    Is there a way to add to the existing values in a container when a LabVIEW prototype (cluster) changes?
    I have a cluster with 90 values..  ninety!  yes that many.
    Change one bloody value and the prototype changes in the TestStand step...  Reload the prototype and guess what happens??!!??
    All the bloody values get reset to defaults!  AAAAAAAAAAAAAARRRRRRRRRRRRRRRRRRGGGGGGGGGGGGGGGGGHHHHHHHHHHHH!
    If it was in one place, I could survive the ordeal.  But I have to change bloody prototypes in many places!!!!
    more AAAAAAAAAAARRRRRRRRRRRGGGGGGGGGGGHHHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!!!!!
    I can't even copy the bloody values!!!!!!!  AAAAAAAAAAAARRRRRRRRRRRRRRGGGGGGGGGGGHHHHHHHHHHHH!!!!!!!!!!!!!!!!!!
    Are there any tricks that I am not aware of, or have forgotten over the years, or...  ...   something??!!??!???!!
    If there are none, I will have to post an improvement to TestStand..  I should mention I am using an older version (4.1).

    Hmmmmmmmmmmmmmmmm,
    I am not not very famous with LV and its cluster types.
    So no idea if this works (it works for DataTypes updates very well and a LV cluster is Data Type so.... maybe)
    Make a copy of the step that has to be modified to an new sequencefile. 
    Make modifications the in the copy.
    Now you should have the same DataType Name but other contents in the container. Save it.
    Normally there should be a message box that tells you that version has been incremented. - Accept it.
    Set in StationOptions-File "Allow Automatic ...." to Never.
    Open original sequencefile. Now the there must be a type conflict. Accept/Apply to all  "Use Current Loaded.."
    You have updated the type.....
    Hope this worked,
    Juergen
    =s=i=g=n=a=t=u=r=e= Click on the Star and see what happens :-) =s=i=g=n=a=t=u=r=e=

  • Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.

    Is there some way to add multiple addresses to an email I am sending that doesn't close the contact list after I click on an address?  This necessitates constantly going back to click the + sign to add each address separately.  Is there some way I can open the contact list, click on all of the individual addresses to which I want to send the email without the list closing between each address entry, and have all of my address entries be listed to the email at one time?  Something like it works in Gmail.  I do not want to use set lists, I want to enter different addresses each time I send an email.  And I am a very slow typist, so I don't want to type the first few letters of each recipient's name.  It is much faster for me to just click on the e-mail addresses in the list as a group.  It doesn't make any sense to me to have to reopen the contact list for each address, when it should be so easy to click on all of the addresses I want at one time and then click once to add them all to the email as a group.  If there is a solution to this, please tell me.  Thanks.

    Vatlily,
    Try this:
    1. Select Mail>File>New Message.
    2. Select Mail>Window>Address Panel.
    3. Use (command+click) on the desired addressees in the Address Panel to create the list.
    4. Click "To:" on the top left of the Address Panel.
    The group that you selected will be added to the "To" field in your New Message.

  • Is there any way to add a password to the guest account?

    We use a computer reservation system for public computers in my library.  I would love to have the functionality of the guest account so the account is wiped after every log out. 
    The problem with our reservation system is, it requires an account with a password for the system to work properly.  So for the past year, I have been running a standard user account with 3rd party software to lock out the ability to permently change anything on the system.  The problem with this is, it retains any changes users make until the system is restarted, not logged out.  So by the end of a 12 hour day the machine can be pretty screwed up if it hasn't been restarted at some point.
    The Guest Account is exactly what I want, but if I can't find a way to add a password to it there is no way for my reservation system to use it.

    You could write a shell script to do that and run it on logout via a logout hook:
    http://seeskill.wordpress.com/2012/02/23/mac-os-x-login-and-logout-scripts-demys tified/
    https://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPSyste mStartup/Chapters/CustomLogin.html#//apple_ref/doc/uid/10000172i-SW10-BAJCGEGG
    I can't be of much help writing such a script. Apple also cautions against such scripts since due to the fact that they run as root they're a security risk. Apple recommends using launchd, something which I have no experience with, but I found a presentation on the basics here that might help:
    http://www.macos.utah.edu/documentation/operating_systems/launchd.html
    I don't know of any other way to remove user documents and settings automatically on logout.
    Regards.

  • Is there a way to add/delete words from the predictive text ?

    Is there a way to add/delete words from the predictive text options that my iPhone is giving me? I'm using an iPhone 6 Plus with iOS 8.
    There are specific words that are popping up in the area right above the keyboard where it displays 3 word suggestions to choose from. This area seems to suggest words that I have typed before, I'd like to remove these words. Default seems to select the word in the center and when I'm typing fast on occasion it will recommend and select words that I don't need to use.
    Any help would be appreciated.

    999753 wrote:
    I know in 10g delete is added but in 9i i can only work with UPSERT( update, insert)
    is there a way to add delete into 9i MERGE? or somehow encapsulate it?
    Thank youI would suggest upgrading to a supported version of the database. 9i has been unsupported for many many years now.
    And to answer your question... to the best of my knowledge, there is no workaround. It works as it works.

  • Is there a way to add multiple borders to a single cell with one click or do I have to add one border at a time for example, one cell with borders on three sides?

    I would like to know if there is a way to add multiple borders to a single cell or selection of cells in one click.  At this time, if i want to add for example a top border and a bottom border to a single cell I have to do this in two steps: first select the top border, style, thickness, and color, and then next select the bottom border, style, thickness, and color.  Is there a way to select the top and bottom border of a cell in one click?  Clicking on the top border then holding down the command key while selecting the bottom border does not work, nor does holding down the option key, the control key, or the shift key work. Thanks for your help.

    Thank you for the suggestion but this did not work for my Mac.  When a cell is selected for which I want borders, the entire cell is lit up.  Then when I go to the border tool and select style, thickness, and color, the entire lit up cell takes on the border, that is the Outside Edges of the cell now have a border.  So selecting the style, thickness, and color first doesn't work.
    If I select the top border first (or any border), the drop down goes away and I can't select multiple borders - I get to choose one at a time.  After selecting one border, style, thickness, and color, said border is now on the spreadsheet.  Then I go back to the border selection and pick another border and the the previously selected style, thickness, and color reverts to null, so I start over with the new border style, thickness, and color.  Yes, it is tedious.
    The Fix would allow the user to select multiple borders, say left and right, before the drop down goes away after selecting only one border
    Does it have something to do with Allow or Disallow border selection?
    I have Numbers '09 version 2.1 (436)

  • Is there any way to add text or arrows onto photos in iPhoto when creating a book?

    I am creating a photo book (Album), in iPhoto, in Projects. There are some place where it would be helpful if I could draw an arrow on the Photo to indicate certain places. I also would like to add text onto a photo in the book. This is as well as typing in the 'text box' provided. It needs to be on the actual photo in the book. Is this possible? I am using Version 9.5.1 which i think is the latest and i am running on Maverick on my iMac.

    There is no way to add anything to the face of a photo in iPhoto at all You will need an extenral editror for that kind of work. You can add text and arrows etc with Preview, already on your Mac or with apps like these:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate or the App Store.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.

  • "Easy" way to add a text string Flex default pre-loader?

    Is there an easy way to add text (company name for example) to the top of the default Flex pre-loader?
    Thanks.

    Sure,
    http://www.flexer.info/2008/02/07/very-first-flex-preloader-customization/
    Johnny
    Please rate answers.

Maybe you are looking for

  • I need a good monitor for the retina macbook pro

    What is a good monitor for the retina macbook pro. Im looking for 27 inch that is around the price of the thunderbolt display. The only thing putting me off the thunderbolt display is that i wouldnt be able to watch stuff on my xbox on it due to no h

  • My phone has locked me out!!!!

    My stupid husband was trying to break in to my phone, kept entering the wrong password. Now my iphone is disbled for x time. I enter my correct password and it wont work and locks me out even longer. Does anyone have a solution?

  • Adding fields in FB03 Document List

    Dear Experts Can anyone let me know whether there is any option to add additional fields like userid, Tcode, etc. in Document list available in FB03. I know that this facility is available in SAP versions 4.7 and above, but I am writing this with ref

  • NEWSPAPER CLASSIFIED LAYOUT QUESTION

    We currently export our orders  from the accounting software to an OS X numbers spreadsheet and pull that data into our small newspaper layout for classifieds as text, then we have to manually re-format the data for underlines, bold, spacing, etc.. T

  • Non-HTTP servlet

              I need to support concurrent access from multiple clients using a non-HTTP protocol           over socket connection. One way is to write my socket server and create a new           thread for each request. But WLS forbids user-created thre