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

Similar Messages

  • How to add js files to sharepoint page using sharepoint designer

    how to add js files to sharepoint page using sharepoint designer

    Upload the files to your site collection into the site assets library or into the style library, depending on perference.
    Then you can include the JS files either in the master page, page tempalte or using web parts.

  • Does anyone know how to add a dateline in the website using muse?

    Does anyone know how to add a dateline in the website using muse?

    You cannot.
    You would have to add it to the mail server ( if you have an IMAP account), then it will appear on the ipad.

  • How to add selected values from table(selected using checkbox)to table?

    Hi All,
    i have created simple page with search panel with table in table i have created one column as check box for selecting.
    here what my requirement is i need to do search multiple times to add some roles to from some different categories.here whenever i searched i ll get some roles into table there i ll select some role and i ll click add buttion. whenever i click add i need to add those roles into some other table finally i ll submit added roles.
    here i followed one link http://www.oracle.com/technetwork/developer-tools/adf/learnmore/99-checkbox-for-delete-in-table-1539659.pdf
    i used same code and able to see selected row in console, as object array how to add these into table.
    please help me out
    Thanks in advance
    siva shankar

    Thank you for a quick reply
    i used the same thing before i go for table check box concept.here what i observed is when i search i am getting some results i am able to shuttle.but if i search again the shuttle is refreshing with new values even not available list its refreshing selected list. IF dont want refresh selected ones.
    my usecase after make some searches I will select some roles from different categories at finally i ll submit.
    i hope you understand me requirement. please suggest me is this requirement is possible in shuttle component? if yes please guide me.
    thanks
    Siva Sankar

  • How to add components in java studio creator (htmLib)

    Hi,
    I'd like to add htmLib.jar into the palette of Java Studio Creator or at least into my project. Does anyone know of a tutorial or know how to do this? In particular, I need help in adding htmLib into my project: http://jsftutorials.net/htmLib/
    Thanks,
    Marc

    To add jar files :
    From the main menu, Tools > Library Manager.
    In the Library Manager dialog box, click New Library.
    In the New Library dialog box, enter the library name.
    Choose the library type and click OK.
    Click Add JAR File/Folder to browse for and add JAR files to the library reference.
    Click OK.
    In the Projects window, right-click the Libraries node and choose Add Library.
    In the Add Library dialog box, select the library reference.
    Click Add Library.

  • How to add text to a pdf file using Access VBA??

    I'm down on my hands and knees, begging.  I have 300 files that I want to put a variable string at the top of the first page (centered, or at the right hand side).  I am using Acrobat X and Microsoft Access 2010 and I do have the SDK and have spend over 10 hours so far searching it and the internet in general, for help and still am coming up empty handed. 
    I can do the looping and passing variables with my eyes closed, but I cannot get the syntax for the actual opening of the pdf and inserting the string. 
    I was trying to modify code I found yesterday that is supposed to add an annotation, but I don't want an annotation, I just want a string of text at the top of page 1. For now, all I want is to be successful at doing ONE file.  Can someone please give me a concrete example of the code I need to use?  Like I said, I'm in begging mode
    Public Sub AddText()
        Dim pdDoc As Acrobat.AcroPDDoc
        Dim page As Acrobat.AcroPDPage
        Dim annot As Acrobat.AcroPDAnnot
        Dim jso As Object
        Dim strPath As String
        Dim intpoint(1) As Integer
        Dim intpopupRect(3) As Integer
        Dim props As Object
        Set pdDoc = CreateObject("AcroExch.PDDoc")
        pdDoc.Open ("c:\Test\Test.pdf")
        Set page = pdDoc.AcquirePage(0)
        'Set annot = page.AddAnnot(0)
        intpoint(0) = 0
        intpoint(1) = page.GetSize.y
        intpopupRect(0) = 0
        intpopupRect(1) = page.GetSize.y - 100
        intpopupRect(2) = 200
        intpopupRect(3) = page.GetSize.y
        annot.SetColor (vbRed)
        annot.SetContents "JCPC - 22 - 2011050000001"
        pdDoc.Save 1, "c:\Test\Test.pdf"
        pdDoc.Close
        Set pdDoc = Nothing
        MsgBox "Done"
    End Sub

    You cannot skip arguments, you can either use the function with one
    argument (just the required argument), or you have to provide all of them.
    Also, it looks like you are trying to specify 20 parameters, even though
    the function only takes 19. Try the following:
    Call jso.addWaterMarkFromText("Test Text", jso.app.Constants.Align.Center,
    jso.Font.Helv, 16, _
        jso.Color.Black, 0, 0, True, True, True, _
        jso.app.Constants.Align.Center, jso.app.Constants.Align.Center, _
        100, 100, False, 1, False, 0, 1)
    I just typed this in without running it through the compiler, so there may
    be typos in the code, but you should get the idea of how the code is
    supposed to look like.
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    PDF Software Development, Training and More...
    [email protected]
    http://www.khkonsulting.com
    On Fri, Jul 26, 2013 at 1:55 PM, I Love Mustangs

  • How to add sub menus in dreamweaver CC using Jquery Tabs

    How can I add sub menus to a Menu Bar in DreamWeaver CC. I know how to do it in CS6 using Spry Menu bar but it's just not as simple as that was now in CC.
    Any Help is appreciated!!

    jQuery tabs is a replacement for Spry tabs, not the Spry menubar.
    Stella333 found a good replacement for the Spry menubar http://forums.adobe.com/thread/1247870

  • How to add WebService authentication in pl/sql using UTL_HTTP

    Hi,
    I am passing SOAP request and getting output as a soap response from WebService using UTL_HTTP.
    Calling Web service client call from the PL/SQL procedure.
    Java web service is a service producer.
    Now we needs to add security to the application we are planing to add some of the userid/pwd credientials.
    So what needs to be add sql code in the sq/sql for making client call.
    i checked from the few of the articles. it shown like
    UTL_HTTP.set_authentication(http_req, 'username', 'password' );
    is it enough for making clent call or any other changes are required.
    Please let me know and any code to be implemented in the jave side aslo(if you knows) :-)
    Thanks,
    Pradeep.

    Okay, backtrack.
    A web server can deliver all kinds of content. From static HTML pages, to XML files and videos and dynamic content. Including reports.
    The communication language (protocol) used to talk to a web server is HTTP.
    UTL_HTTP is an Oracle PL/SQL library that implements the client side of this communication. It allows the developer to write code that acts like a web browser and communicates with a web server.
    Now what do you not understand and cannot use?
    HTTP is not simple and easy. You need to understand the basics of this communication language in order to communicate successfully with the web server. Like knowing the difference between GET and PUT and POST commands, how the URL query string works and so on.
    Once you know that, you can look at how the web server provides reports. How do you authenticate as a web browser with the web reporting system? What URLs do you use to access which reports? How do you pass name-values to the web server as report parameters? What HTTP response formats (MIME types) does the web report server provide? Which one do you plan to use and how do you parse that response into a meaning structured data format?
    If you're thinking it is "easy", think again. Sure, someone here can provide sample code that for example grabs a CSV report file from a web server and (using a pipeline table function), turn that into rows and columns. But that will not teach you the fundamentals you need to know and not equip you with dealing with the problem with your own brains, hands and keyboard.
    PS. In other words, learn to crawl and walk before trying to run. Get to grips with how HTTP works before diving into the deep end of web report integration.

  • How To Add New Contact To a Group Using iPhone

    I use a Business and Personal Group. When I add a new contact using my iPhone, there is no way I can assign it to a Group. Then when I sync, the new contact shows only in Group "All". Further, in Address Book you cannot tell which contacts are not in a Group. I can see the total number of contacts in Group All, and the total in Group Personal, and the total in Group Business, so I can tell the sum of Personal and Business is less than the number in All. But I cannot tell which contacts are in All and not assigned to either Business or Personal. This makes it difficult to then locate the contact on my iPhone (I tend to always look in the appropriate Group).
    So how can I either a) assign a new contact to a Group using my iPhone or b) identify in Address Book which contacts are not assigned to any Group?

    RJOBoston wrote:
    So how can I either a) assign a new contact to a Group using my iPhone or b) identify in Address Book which contacts are not assigned to any Group?
    a) In Phone, Contacts, enter the group you want, THEN add the new contact (you can't add a new contact to a group from Recents, but you can add a number to an existing contact, which will remain in its original group).
    b) In Address Book, select group All, then click File, Export Group vCard... and view the exported file with your favorite text file viewing method (TextEdit, cat | more, vi, etc.); look for entries without a CATEGORIES: line.
    Unchecking Hide Extension and changing it from .vcf to .txt might allow you to open it easier in TextEdit; I opened Terminal and used "cat Documents/vCards.vcf | grep : | more" to view them ("grep :" filters out the photos).
    (Note to others: The above procedure is for Mac OS; Windows users could probably export their Outlook Address Book and use Notepad to view it.)

  • How to add Service item in  PR Document using BAPI_PR_CHANGE

    Hi Folks,
    I am using BAPI_PR_CHANGE to change existing purchase requisition document. By using this FM, i am able to add new item in PR document.
    Now my requirement is to add services and limits at item level details.
    But when i saw the parameter list of this FM, i am not able to find any parameter where service details or limits can be passed.
    So does it mean that, its not possible to edit service details at item level of PR by using  FM BAPI_PR_CHANGE?
    Or if yes then how can we do it.
    If No, then what could be the alternative to change the service details of the item.
    Regards
    PG
    Edited by: PG on Aug 30, 2010 6:32 PM

    Hi,
    I just realised that, this question can be asked in specific forum of MM.
    Regards
    PG

  • How to add customization logic around lockPref() when using it in .cfg file

    I wanted a way to apply the lockPref only when certain conditions are met and also add some customization logic around the lockPref functionality. How can I acheive this?. Any sample script to acheive this is greatly appreciated.
    == User Agent ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    mozilla.cfg is a JavaScript file, so you can try to add the instruction to that file to see if that works.
    What kind of customizationlogic do you have in mind?
    <code>if (condition) {
    lockPref(prefName, prefValue);
    </code>

  • Anyone know how to add audio without image and still use autoplay feature?

    Does anyone know how I can add audio to a webpage without having to add an image and still be able to use the autoplay feature? Adding as hyperlink doesn't accomplish what I'm after. Thanks in advance for the education!

    You can use the "hidden" song file method...
    http://roddymckay.com/Satellite/CatchTheTide.html
    You don't have to hide it completely if you don't want to - just reduce it to a small dot.

  • How to add Proxy server to internet explorer using a Group Policy 2008

    Hi,
    I am using active directory of Windows Server 2008 R2 x64. I have a proxy server from Microsoft TMG 2010.
    What I need to do is I need to add Proxy server settings to the browser via the GPO. How can I do it?
    Thanks in advance.
    Yosh
    --------------------------------------------------------------------------------- YOSHIKA04 ------------------------------------------------------------------------------

    > instead.  That's all very well but using above IE 8 isn't supported in
    > preferences.
    It IS supported. Either use a newer OS or manually edit the XML:
    http://blogs.technet.com/b/asiasupp/archive/2011/03/30/internet-explorer-9-ie9-group-policy-preferences-gpp.aspx
    Martin
    Mal ein
    GUTES Buch über GPOs lesen?
    NO THEY ARE NOT EVIL, if you know what you are doing:
    Good or bad GPOs?
    And if IT bothers me - coke bottle design refreshment :))

  • How to add disclaimer on smtp server and use it using utl_smtp.

    We use utl_smtp to send emails. The requirement is to add a disclaimer on smtp server so that any outgoing emails sent using utl_smtp should have this disclaimer.
    Is that possible and how do we acheive this?
    --Thank you for any suggestions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hello Rahul,
    the code would be something like this:
    loop at itab1.
    move-corresponding itab1 to itab2.
    collect itab2.
    endloop.
    Hope this helps.
    Regards,
    Himanshu

  • How to add static data in ADF table using ADF 11g?

    Hi
    Can any one tell me how can I add static data in ADF table?
    Thanks

    You can try this one. I created this static table just for viewing purpose.
    Open Create View Object wizard
    Choose, “Rows populated programmatically, not based on a query” which is 3rd radio button option
    In Attribute tab, create some ‘Updatable’ Attributes
    Choose the AppModule in the final step.
    Drag and drop the view object as ADF table.
    Next, programmatically insert data in your backing bean.
            ApplicationModule applicationModule = this.getApplicationModuleForDataControl("TmpTableAppModuleDataControl");
            ViewObject vo = applicationModule.findViewObject("ProgViewObj1");
            Row newRow = vo.createRow();
            newRow.setAttribute("updAttr1", value1);
            newRow.setAttribute("updAttr2", value2);
            vo.insertRow(newRow);If you add this code in buton action you have to add button's partialTriggers to table id.

Maybe you are looking for

  • Mouse turns off after waking up

    I just bought a new keayboard for a PowerMac G4 I was given. I am using a standard 2 button optical mouse plugged into one of the usb ports on the keyboard. After the computer comes back from sleep, the mouse will not work unitl I unplug it and re-pl

  • Enter GL account

    Hi Friends, In the VKOA I have defined the data for combo (V/KOFK/Ch Ac/Sales org/DC/AAg/AAG/orderAAG/Act Key/GL account) But when I am creating standard debit memo request and chkng incompletion log showing as complete but when am saving getting err

  • Fail during installing AMD driver

    Hi , i have been trying to update my AMD 6770m driver from 8.830.6.1000 to the new update but i failed each time i tried auto detection and update and it shows me errors i tried manualy by browsing to the c/amd/support then the driver but it show tha

  • "Error 1004 please try again later"

    Hi, I am having trouble downloading the update. I keep getting "Error 1004 please try again later" I get this error when I press the "resume" download button in the App store. Not sure what the next step is, any help would be appreciated. Also runnin

  • Java VM error during iOS publish, Flash Pro CS5.5

    When I try to build a "Hello World" iOS app for the iPhone using Flash Pro CS5.5 I get the following error: Error creating files. Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virt