How to create 2nd item in PR automatically

Hi Folks,
I have a requirement to create Purchase Requsition(ME51N) with 2 items, but I will enter the data only for 1st item and 2nd item should be created automatically when the Item text category for 1st item is L - Subcontracting.
(i.e based on item text category 2nd item should be created automatically)
I am working in SAP 4.6C system. I tried to add the extra item in one place in of one of the uesr exits, but that is not saving into the database.
Plz let me know if is there any possibility to achieve this.
Thanks in advance.
Sridhar.

It can be treated as a third party scenario with a Purchase requisition having item category as S . Let it be GR based IV in the vendor info record. Have the GR -based IV verification indicator unticked in Vendor master.
Use
This field controls the default value for goods receipt-based invoice
verification when an info record is created and - if no info record
exists - when a purchase order is created.
If this field is selected:
o the field "GR-based invoice verification" is preselected in the info
record when such a record is created for this vendor. (Note: if you
change the selection in the vendor master record, the info record
does not change automatically);
o the field "GR-based invoice verification" is preselected in the
order item field when a purchase order is created for this vendor if
no info record exists for the vendor and the ordered material.
This setting will enable PO to have only IV indicator set.

Similar Messages

  • How to create database item for fast formula?

    Hi,
    Is there any document for how to create database item for fast formula? I could not find in Metalink or this forum. Thanks.
    Andy

    Oracle ship many pre-delivered Database Items plus they're created automatically when you create Input Values (etc).
    There's often something already there for you. If there's not, you usually create Fast Formula functions to retrieve other data. You don't create your own custom DBIs; Oracle don't deliver APIs for that.

  • How to create a project in PS automatically wen it is created in cProjects.

    Hai experts,
        How to create a project in PS automatically wen it is created in cProjects.
        After creating project in cProjects wen i flagged to transfer it is not transferring to PS...
    How to achieve this...
    Thanx in advance...

    hi
    Try with following settings if you have not done:
    1) In define project type, for for accounting integration , select scenario as: Accounting integration in my SAPERP and type of transfer as : Always Automatic when saving
    2) For Define object link for object type , define proxy class for WBS element and Project definition(PS)
    Also define RFC for Single object Controlling on WBS element in Object types for object links.
    3) For Accounting integration in Make general settings, for your project type select frame09 for your object type single object controlling on Internal order
    4) Define CO scenario CPR2 with Strategy sequence as SAP040 in period end closing, costing sheet as standard and Costing variant as PC02(Internal Order)
    5) In CO scanrio maintenance view, for your project type select contolling method as Internal Order( Project Definition, Automatic)
    With these settings I am able to create a PS project from cProject when I save a cProject.
    Regards,
    Niraj

  • How to create Shuttle Item in APEX

    Hi,
    could you please anyone let me know the steps of how to create shuttle item in APEX?
    Thanks for your help
    Thanks
    Sri

    Hi Jitendra,
    Thanks for replying.
    my query like this.
    select * from table1,table2
    where
    table1.value not in 'CABINET' ---- here i need to create shuttle
    and table2.name like 'B%' --- this is just text box
    table3. value is coming from LOV.
    could you please let me know how to create value as shuttle, in shuttle wht are the changes do i need to make changes?
    Thanks
    Sri

  • How to create list items with multiple attachment files using rest api javascript

    In one of user form I am using javascript rest api to create a list item with multiple attachment files. So far I am able to create list item and once created uploading an attachment file. But this is two step process first create an item and then upload
    a file.
    It create an additional version of the item which is not desired. Also I am not able find a way to attach multiple files in a go. Following is the code I am using.
    createitem.executeAsync({
                    url: "/_api/web/lists/GetByTitle('UserForm')/items(1)/AttachmentFiles/add(FileName='" + aFile.name + "')",
                    method: "POST",
                    contentType: "application/json;odata=verbose",
                    headers: {
                        "Accept": "application/json;odata=verbose",
                        "X-RequestDigest": $("#__REQUESTDIGEST").val()
                    binaryStringRequestBody: true,
                    body: fileContent,
                    success: fnsuccess,
                    error: fnerror
    So somehow I need to combine item attributes along with attachment files in body: param. I visited https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#bk_ListItem but no success.
    Appreciate any help.

    Thanks Mahesh for the reply and post you share it was useful.
    But this does not solve the core of the issue. You are uploading attachments after creation of item and multiple files are being attached in loop. This is kind of iterative update to an existing item with attachments. This will end up creating multiple versions. 
    What I am trying to achieve is to create an item along with multiple attachments in a go. No item updates further to attach a file.
    Please suggest how this can be done in one go. SharePoint does it when one creates an item with multiple attachment.
    Thanks for your reply.

  • How to create Confirmation Item QUANTITY during Runtime

    Hi Experts,
    I am trying to create Confirmation ITEM with QUANTITY during runtime.
    I have successfully created item using CRM_ORDERADM_I_MAINTAIN_OW however it doesnot have scheduling_i structure which hold QUANTITY. I tried with CRM_ORDER_MAINTAIN_MULTI_OW. getting following error, I tried with CRM_SCHEDLIN_I_READ_OW it creating quantity on CRM Confirmation screen.
    Can you pls tell me how to get quantity. 
    Thanks
    Anee
    The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X)
    ls_fund_h         TYPE  crmt_fund_h_com,
            ls_cla_h          TYPE  crmt_cla_h_com,
            ls_lawref_h       TYPE  crmt_lawref_h_com,
            lt_lawref_h       TYPE  crmt_lawref_h_comt,
            ls_orderadm_i     TYPE  crmt_orderadm_i_com,
            lt_orderadm_h     TYPE  crmt_orderadm_h_comt,
            lt_chngproc_i     TYPE  crmt_chngproc_i_comt,
            ls_chngproc_i     TYPE  crmt_chngproc_i_com.
      DATA:
            ls_entry            TYPE  crmt_guid_handle,
            lv_dummy            TYPE  crmt_msgtext,
            lv_vona_kind_copy   TYPE  crmt_boolean,
            lv_count            TYPE  i,
            ls_msg_handle       TYPE  balmsghndl,
            ls_exception        TYPE  crmt_exception_logical_ke
            lv_subrc            TYPE  sy-subrc.
      FIELD-SYMBOLS:
            <ls_order_item>   TYPE  crmt_order_items.
    * check correct call
      ADD 1 TO gv_recursive_call.
      ADD 1 TO gv_maintain_active.
      CALL FUNCTION 'CRM_ORDER_CHECK_RECURSIVE_OW'
        EXCEPTIONS
          recursive_call              = 1
          call_without_order_maintain = 2
          OTHERS                      = 0.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        EXIT.
      ENDIF.

    Did you solve the problem?

  • How to create runtime 'item'

    Is there any way I can create runtime 'item'?
    It doesn't mean,before I create an item and set_item_property
    (***,visible**,**false) after that make visible staff.
    I don't know how many items the form will display during the
    runtime and I need to create according to my DB.
    Somebody help.
    null

    You are correct.
    You may use set_item_property(item_name,visible,property_false)
    then for to make it visible and use
    you need to use two built-ins
    set_item_property(item_name,visible,property_true)
    This makes only visible . Then by using
    set_item_property(item_name,enable,property_true) makes it
    enable to use.
    Regards
    Nagaraju Kotni
    null

  • How to create an item with date type mm/yyyy (no day)

    Hello,
    Is it possible to create an item with date type mm/yyyy (no day)? I want the pop-up date picker to just show month and year.
    Thanks,
    Jen

    Hi,
    you cannot pop-up date picker to just show month and year, but you can set your item format as MM-YYYY
    You can check this APEX_ITEM.DATE_POPUP2 at : http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_item.htm#CHDJHBCG (if using apex 4.1) else http://docs.oracle.com/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDFDDEI
    Edited by: Sergio_doudou on 2012-04-13 14:26

  • How to create an item Phone Number of US Format

    Hi,
    Need to create an item in a page Phone Number.
    The Item should accept only US Phone Number Format.
    Need Suggestions.
    Regards,
    Krishna

    Hi Krishna,
    You can make the US Phone format validation in the Page controller by making a validation function and call this validation function on the submit button or form submission. u can use the following function in the page controller-
    public void validatePhone(String sPhoneNumber )
    Pattern pattern = Pattern.compile("\\d{3}-\\d{3}-\\d{4}");
    Matcher matcher = pattern.matcher(sPhoneNumber);
    if (matcher.matches()) {
    throw new OAException("Phone Number Valid", OAException.INFORMATION);
    else
    throw new OAException("Phone Number must be in the form XXX-XXX-XXXX", OAException.INFORMATION);
    and call the validation function in processFormRequest function
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAMessageTextInputBean msgInBean =(OAMessageTextInputBean)webBean.findIndexedChildRecursive("<id of the element>");
    if ((pageContext.getParameter("<submit button>") != null))
    String val =(String)msgInBean.getValue(pageContext);
    validatePhone(val);
    u also have the following imports in the controller -
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import java.util.regex.Matcher;
    import java.util.regex.Pattern;
    I hope this will help u.
    Regards
    Renu

  • How to create Asset Item & Inventory Item?

    Dear Experts,
    What makes the Difference in creating Asset Item & Inventory Item? Please help me
    Thanks
    Bharath

    you might be interested in the below thread
    Re: Inventory and Expense item
    Mahendra

  • How to create multiple items in popup window

    Hi,
    i am using apex3.2.
    i want to create page as a popup and that popup page has multiple of select list items .i have 8 select list item on popup page.i have a link on other page.when i click on this link popup page should open .after selecting values from select list when i click on submit button on popup page. all select list return values concatenation should display in a text box item.
    How can i do this? if you have any tutorial or link please send me.
    Thanks & Regards
    Vedant

    Hi,
    try this example from Denes Kubicek:
    http://htmldb.oracle.com/pls/otn/f?p=31517:93:678982863984901: (Close PopUp + Refresh)
    Best regards,
    Tobias

  • How to create an activity in CRM automaticly

    Hi
    I'm working in CRM 4.0 and try create an activity automatically when a BUPA_MAIN objects come from FI-CA.
    In the BDOC-flow I start an own developed FM to check if a new activity will be created, that's no problem but which FM/BAPI will I use to create the new activity and how to fill them?
    Thank for help//

    Hello Jan,
    To create a new Activity Document use BAPI BAPI_SLSTRANSACT_CREATEMULTI.
    To find out how to fill the parameters, create a documento directly in CRM and debug function module CRM_ORDER_MAINTAIN to see how you have to fill the parameters.
    Maybe there is an OSS note that explains how to use this BAPI.
    Regards,
    Mauricio

  • How to create custom Item Renderers List for mobile?

    Hi,
       I have seen many samples using List with Item Renderers (image, label, message below the label and decorator) for mobile apps.
    But what I need is, I need to create a List with the below items.
    Item 1. Image
    Item 2. a small icon
    Item 3. Label with 1 or 2 lines
    Item 4.  a Favourite button (like Favourites + or - button). If I like this item, I add it into my favourites list
    Item 5. decorator arrow > to go the Detail view.
    I am new to Adobe Flash Builder and Flex development. Can anyone show me some samples on how to do this?

    Method One:
    I have created simple application page and i used powershell command(Set-SPCustomLayoutsPage -Identity "AccessDenied" -RelativePath "/_layouts/ExampleAccessDenied.aspx" -WebApplication "http://DEVWEBAPPLICATION")
    to change the new custom page.But it will be applied to all site collections in web application.
    Method Two: I have created custom masterpage and added following script. And referred this Custom masterpage in the custom access denied page.But it Never comes to this script.
    script type="text/javascript">  
      _spBodyOnLoadFunctionNames.push("redirectToCustomAccDenPage");  
      function redirectToCustomAccDenPage()  
       if( -1 != location.href.toLowerCase().indexOf('http://yoursitename/_layouts/accessDenied.aspx') )
       var url = 'https://' + window.location.host + '/mysite/customPages/customAccessDenied.aspx';
       window.location.replace(url);
       else
       alert(location.href);
     </script> 
    Method 3:
    I have Created custom HTTP module and implemented and it is working fine. But  the problem is it will be called for the all the requests in the web applicaton.
    COuld you let me know alternate apporach.
    Thanks
    Ravi P
    Ravi

  • How to create new items in Puchase Requisition.

    Hi
    I've have a requirement where I need to fill purchase requisition with new items when user insert first item, I've some code lines but I don't know how to stop to back to T/C ME51N.
    lo_header = im_item->get_requisition( ).
        lo_item = lo_header->create_item( im_item = im_item ).
      lo_item = lo_header->create_item( ).
       ls_item = lo_item->get_data( ).
       ls_itemx = lo_item->get_datax( ).
        ls_item-BNFPO = 2.
        ls_item-matnr = 'MIC360RG'.
        ls_item-menge = 1.
        ls_itemx-BNFPO = 'X'.
        ls_itemx-matnr = 'X'.
        ls_itemx-menge = 'X'.
        lo_item->set_data( im_data = ls_item ).
        lo_item->set_datax( im_datax = ls_itemx ).
    BAdI : ME_PROCESS_REQ_CUST
    Method: PROCESS_ITEM
    I apologize if I'm doing something wrong, but I really need to make it work, thanks in advance.

    Hi Dear,
    There is some link will help you to create Purchase Requisition and other MM Documents.
    http://www.docstoc.com/docs/11307932/SAP-MM-Manual-Create-Purchase-Requistion
    http://www.r3.duke.edu/training/stepbystep/#purch
    http://sapdocs.info/sap/materials-management-2/download-sap-purchasing-user-training-ppt-material/
    Regards
    Aamir

  • How to create 2nd Wifi Network from one cable modem

    Hello, I am trying to create a 2nd wireless network from one cable modem.  Currently I am using an Airport Express connected to the cable modem.  I also have an unused Airport Express that I would like to use for the 2nd network.  The Motorola modem has only one network cable port in the back.  I am currently using Time Warner as my service provider.  Can someone tell me if a network switch would suffice or would I need a new router, and how would I set them up?  Thanks.

    Unfortunately you will not be able to create two separate Wi-Fi networks with the current models of the AIrPort Express that you have. You would need at least one 2nd generation Express and one 1st generation Express to do so.
    The 2nd generation Express would be connected directly, using Ethernet, to the Internet modem, and the 1st generation Express would be connected, via Ethernet to the 2nd gen. In this configuration each Express could be configured to provide a separate Wi-Fi network with each using a different security type.

Maybe you are looking for

  • G5 with samsung 52" tv  Mode not supported

    Does anyone know how I can make my Powermac G5(single 1.8 ATI Radeon 9800pro) work with my Samsung 52 inch TV at HD resolution I am attempting to convert my old Powermac G5 into a media computer. At some point I may want to add a blu-ray drive. When

  • Download TAB-Delimited file

    Hi, I want to produce a TAB-Delimited File using the FM, Gui_Download. Could anyone help how to do this?

  • Can't see the podcast picture and episodes on iTunes

    Hi, My podcast feed was added to iTunes store about a week ago. It was working well for a couple of days, and now, I can't see my episodes and my podcast picture on iTunes catalogue. I was wondering what might be the problem? Here's the XML file crea

  • Problem with RFC adapter (JCO Exception RFC logon failure)

    Hi , I have SOAP to RFC scenario. Scenario with same configuration (RFC adapter) is working in QA system.but when I have transported to PRODUCTION system it is showing com.sap.aii.af.ra.ms.api.DeliveryException: RfcAdapter: receiver channel has stati

  • My older videos on "iphoto" aren't working

    I was going through all my videos and I went back to the older ones I uploaded and they won't open. There is a symbol with a exlamation point every time. They were fine not too long ago and all of a sudden , it's not working. I'm get frusterated beca