To Create a gr against a subcontracting po

Hello all,
  I am trying to create a gr against a subcontracting po here is the code.
DATA : wa_header TYPE bapi2017_gm_head_01.
DATA : wa_gr_item TYPE bapi2017_gm_item_create.
DATA : it_gr_item TYPE TABLE OF bapi2017_gm_item_create.
DATA : i_return TYPE STANDARD TABLE OF bapiret2.
DATA : wa_return TYPE bapiret2.
DATA : gr_number TYPE bapi2017_gm_head_ret-mat_doc.
DATA : code TYPE bapi2017_gm_code.
code-gm_code = '01'.
wa_header-doc_date = '20071217'.
wa_header-pstng_date = '20071217'.
wa_header-pr_uname = sy-uname.
*wa_header-REF_DOC_NO = '4700000010' .
*wa_header-BILL_OF_LADING = 'R001'.
*wa_header-GR_GI_SLIP_NO = 'P002'.
wa_header-header_txt = 'text'.
wa_header-ver_gr_gi_slip = '20071117'.
wa_header-ver_gr_gi_slipx = 'INR'.
wa_header-ext_wms = '20080120'.
wa_header-ref_doc_no_long = 1.
wa_header-bill_of_lading_long = ' '.
wa_header-bar_code = ' '.
wa_gr_item-S_ORD_ITEM = '0010'.
*wa_gr_item-material = 'Y040SMKCMBXX'.     
wa_gr_item-material = 'TBUMPR00030115' .
WA_POITEM-ITEM_CAT = ''  .
wa_gr_item-po_number = '4700000010'  .
wa_gr_item-po_item = '0020' .
wa_poitem-short_text = 'TEST'. .
wa_gr_item-plant = '1002'.
wa_gr_item-stge_loc = 'RK02'.
wa_gr_item-batch = 'Z123' .
wa_gr_item-move_type = '101' .
wa_gr_item-mvt_ind = 'B'.
wa_gr_item-vendor = 'POB02'.
wa_gr_item-entry_qnt = '1'.
wa_gr_item-entry_uom = 'KG' .
APPEND wa_gr_item TO it_gr_item .
*wa_gr_item-S_ORD_ITEM = '0020'.
*wa_gr_item-material = 'Y040SMKCMBXX'.     
*wa_gr_item-material = 'TBUMPR00040115' .
WA_POITEM-ITEM_CAT = ''  .
*wa_gr_item-po_number = '4700000010'  .
*wa_gr_item-PO_ITEM = '0020' .
wa_poitem-short_text = 'TEST'. .
*wa_gr_item-plant = '1002'.
*wa_gr_item-STGE_LOC = 'FG01'.
wa_gr_item-batch = 'BAt01' .
*wa_gr_item-MOVE_TYPE = '543' .
**wa_gr_item-MVT_IND =  .
*wa_gr_item-VENDOR = 'POB02'.
*wa_gr_item-entry_qnt = 4.
*wa_gr_item-entry_uom = 'KG' .
*APPEND wa_gr_item TO it_gr_item .
*data : t_gr_item type table of BAPI2017_GM_ITEM_CREATE.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
  EXPORTING
    goodsmvt_header               = wa_header
    goodsmvt_code                 = code
  TESTRUN                       = ' '
  GOODSMVT_REF_EWM              =
IMPORTING
  GOODSMVT_HEADRET              =
   materialdocument              = gr_number
  MATDOCUMENTYEAR               =
  TABLES
    goodsmvt_item                 = it_gr_item
  GOODSMVT_SERIALNUMBER         =
    return                        = i_return.
  GOODSMVT_SERV_PART_DATA       =
  EXTENSIONIN                   =
LOOP  AT i_return INTO wa_return.
  WRITE wa_return-message.
ENDLOOP.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
   wait = 'x'.
IMPORTING
  RETURN        =
LOOP  AT i_return INTO wa_return.
  WRITE wa_return-message.
ENDLOOP.
WRITE :/1 ' PO :' , gr_number.
When ever i execute this prgram i getting an error :
Of the required quantity of material TBUMUP00040115, 1.000 KG remain(s) open
Of the required quantity of material TBUMUP00040115, 1.000 KG remain(s) open
PO :
how to correct the error and how can i create a gr.
Please send some code with solution.
Points will be rewarded.
Thanks and Regards.
S Mahanta.

Hi Chandra,
Can u tell me the solution how u have solved this .
Regard
Sanket

Similar Messages

  • How to create the reservation against purchase order

    hi to all,
    as we r using alternate bom scenario in company.
    so if i create the bom of item X base qty-1 pcs
    there r 2 alternate items in bom of X are as follows
    COMPONENTS A-1 PC  priority-1 probability -100%
                         B-1 PC    priority-2 probability -0%
    now as i am creating SUBCONTRATING P.O of X for 1 pc
    than system is automatically picking the quantiy of 1 & 0 pc respectivley of A &B.
    but when i am going to create reservation against this PO .
    it is not oicking data as per PO.
    reservation ispicking data 1 & 1 of A & B. as we have added 1 pc each of A & B in bom OF X.
    Pls help how i can create the reservation against PO.
    answers will be appreciated,
    thanks
    ravi khurana

    hi,
    i f u will go to MB21 than there is option to create reservation with refrence to.
    i can create the resrevation aganst bom, there is also one option for purchase order.
    how can i use it pls suggest .
    thanks
    ravi khurana

  • Create multiple deliveries against the same customer return order

    I want to create multiple deliveries against the same Customer return order. But once the RF transaction is run it closes all the lines.  We need to be able to receive multiple times against the same RA number and create different deliveries. Any ideas?
    Will reward points to any helpful answers

    are the deliveries being created by RF monitor ?
    Or only picking is happening by RF?

  • Unable to create excise invoice against the Material document

    Hi experts,
    Unable to create excise invoice against the Material document in J1IEX transaction.
    Material document is generated through quality management which movement type is 105.
    error message :
    Material document cannot be processed
    Message no. M7130
    Thanks
    SAP MM

    Steps to do GR along with excise,
    1.Capture excise invoice using J1IEX.
    2. Refer excise invoice no. in MIGO(SAP not recommends to post excise invoice against 105 mvmt against blocked stock)
    3. Post excise invoice using J1IEX

  • Name of Proxies created with SE80 against created with SPROXY

    Hi All!
    I have a simple doubt.
    Exist any difference in the name of Poxies created with SPROXY against created with Object Navigator (SE80)?
    For example, the proxies created with SPROXY could be called "XI Proxy" and the Proxies created with Object Navigator could be called "WS Proxy".
    Helpful answers will be rewarded.
    Thanks and regards,
    Manuel.

    i am not sure of a standard way but when you try to create a proxy you are requested to enter the prefix for the proxy, you can use a different ones for the ones created from sproxy and differnt ones for the ones created from se80
    Raja

  • Cannot create a GR for a subcontracting PO

    Hi
    I am not able to create a GR in MIGO for a subcontracting PO. It is givingthe error message " enter storage loc" but I have that field locked in the header details tab.
    Please advise.
    Thanks
    VV

    Hi
    Thanks It worked.
    I have one more question ... It gives an error message "shortfall of 134 days against SLED in current item(xx/xx/xxxx)gives the date.
    Do i need to change the SLED date?
    Iam testing the transaction and maybe Iam giving a wrong data. Please let me know how to solve this error.
    Thanks
    VV

  • Error in process when creating Purchase Order against WBS

    Hi!
    We are creating a purchase order (BBP_POC) against a WBS. But when trying to purchase for more than what the project budget is set to the purchase order gets the status "Error in process". We do not want the purchase order to be replicated to ECC but dont want it to be created in SRM as well. Is there a way to get an error message when trying to create the Purchase order? We do not want to end up with alot of purchase orders with "errror in process".
    When doing the exact same thins in sourcing cockpit it is not possible to create the purchase order. Then we receive the error message (or warning) stopping us from creating a PO in SRM.
    How to get the error and warning in BBP_POC?
    Sincerely
    Anders Öhrling

    The budget check should work in the following cases
        1. When you create and change a shopping cart (e.g. after it has been held)
        2. When you create and change a purchase order (purchasing cockpit)
        3. When you create a purchase order from within the sourcing cockpit (as of SRM 2.0)
        4. With the approval of shopping carts and purchase orders
    Unfortunately nr 2 is not working.
    BBP_BUDGET_CHECK is not implemented.
    Sincerely
    Anders Öhrling

  • Creating Receivables Transaction against Applicant

    Hi,
    There is a requirement where a applicant who will apply for a Job vacancy in iRecruitment should pay some applicant fees and then only apply for the job.
    For this an Receivables receipt has to be raised against the applicant.
    The scenario is :
    1. Employee will start applying for job by entering details.
    2. Before applying system will ask for payment.
    3. System will redirect it to third party payment gateway.
    4. After successful return it should generate the receipt for the amount paid against the applicant.
    Will it be possible?
    Please help asap..
    Thanks in advance

    Hi All
    I got the solution for the above query.
    In order to assign the order to a notification, I have to call the BAPI
    ISU_SMNOTIF_ASSIGNTOORDER after creating the order using BAPI_ALM_ORDER_MAINTAIN.
    Thanks to all.

  • Unable to create delivery through ME2O in subcontracting process

    Hi,
    I am trying to create delivery for the subcontracting order in ME2O, but it was giving the error. Stock also exist for component material.
    The error messange is:
    "An item with no delivery quantity is not permitted. Item will be deleted".
    Please let us know the reason.
    Thanks in advance!
    Thanks,
    Jana

    Hi
    Please check the Stock overview MMBE of the material, in the stcok overview check the stock qty click on
    details and check if any stock qty is reserved for any delivery.
    Usually the delivery is created but PGI is not done , in such cases systme reserves the stock for that delivery, in the sytem it shows that stock is availble but that may be reserved.
    Thanks & Regards
    Kishore

  • Creating a delta against a custom Function Module datasource

    I currently created a datasource via RSO2 against a function module.  The function module uses the RSAX_BIW_GET_DATA_SIMPLE as a template and I molded this against the data that I need.  Full loads for this extractor work without any problems but I'm having issues with creating a delta load.  Is there someone that can create a list on how to createa delta against a function module.  I believe there is more to do this than just have RSO2 set up against a field.  How do I get the new records into RSA7?  Thanks for your help.
    Tim

    We are trying to create the same delta extract from r/3 against a custom z table to an infocube in BW. Were you able to do this successfully using the f RSVD_BW_GET_DELTA_DATA as a template and did u receive the code? If so, are you able to send your code?
    My function modules works and fetches the data normally but the info package when scheduled gives an error
    <b>Error message from the source system
    Diagnosis
    An error occurred in the source system.
    System response
    Caller 09 contains an error message.
    Further analysis:
    The error occurred in Service API .
    Refer to the error message.
    Procedure
    How you remove the error depends on the error message.
    Note
    If the source system is a Client Workstation, then it is possible that the file that you wanted to load was being edited at the time of the data request. Make sure that the file is in the specified directory, that it is not being processed at the moment, and restart the request.</b>
    You can send the code or procedure to my mail id
    [email protected]
    Thanks in advance,
    Best Regards,
    Vishal

  • Can't create outboud delivery against new SO type

    Dear Experts,
    I created SO type via VOV8 & assign the item category via Sales & Distribution - Sales - Sales Document - Sales Document Item - Assign Item Category.
    Then I create a Sales Order via VA01 & then create Outbound Delivery via VL01N. Error getting when create outbound delivery.
    Error: Copying is not poss.because an entry is missing in Table TVCPL: YCF1 ZEF1 ZKB1
    Message no. VL473
    Message Text
    Copying is not poss.because an entry is missing in Table TVCPL: YCF1 ZEF1 ZKB1
    Technical Data
    Message type__________ E (Error)
    Message class_________ VL
    Message number________ 473
    Message variable 1____ YCF1
    Message variable 2____ ZEF1
    Message variable 3____ ZKB1
    Message variable 4____ 
    Message Attributes
    Level of detail_______ 
    Problem class_________ 2 (important)
    Sort criterion________ 
    Number________________ 1
    Environment Information
    Group_________________ 
    Sales Document________ 9
    Item (SD)_____________ 000010
    Schedule Line Number__ 
    Counter_______________ 02
    Group type____________ L
    Could anyone able to assist me to resolve thsi issue.
    TQ
    rgds,
    nantha

    Hi
    I hope, you have created your new Item category by copying the existing Item category in standard .
    I feel that , you have not copied the Item category properly.
    So, you need to delete the copied Item category and create a new one as below.
    Select the Item category you want to copy (VOV7).
    Choose "copy as" > rename the item category in the next screen > click enter.
    A pop-up will come,"is it relevant for coying" > click "yes".
    Now, you will get the message in the status bar that one item is copied.
    Here, do not leave the screen, it has not copied completely.
    In this screen click on "save" button and wait. You get a pop-up box "maintain table view" > click "continue" .
    Now only your Item category is correctly copied.
    From your postings, I feel , problem is in copying the Item category.
    If you have followed like above, then problem may be in copying control.

  • Unable to create excise invoice against Purchase Goods Return

    Hi All,
    I m getting goods return detail for creating outgoing excise, but system throws error msg as "Item is not sales item", which is correct as I have to return to vendor and want to return excise amount accordingly.
    Your solution be higly appreciated
    Thanks
    Suraj

    hi
    you can say it bug or something
    but if you want to create a purchase return you have tick sale item in item master data of that item
    same with sale return
    please check it and let me know
    thanks
    avtar singh saini

  • How to create a amplitude against freq graph?

    Hi, Iam new in labview. I measured amplitude from my DMM connected through GPIB. I also measured is freq result. How can i plot a graph of amplitude against freq plot?(something like a freq response plot). I do not know how to change the the x-axis of the waveform provided in labview into freq. Thank You.

    > Hi, Iam new in labview. I measured amplitude from my DMM connected
    > through GPIB. I also measured is freq result. How can i plot a graph
    > of amplitude against freq plot?(something like a freq response plot).
    > I do not know how to change the the x-axis of the waveform provided in
    > labview into freq. Thank You.
    If you are plotting an array of amplitudes sampled at various
    frequencies to a waveform graph, you are pretty close. The scale will
    default to being labeled by index -- first amplitude plotted against
    zero, second against one, etc. You can programmatically or
    interactively add a linear transform from index to displayed number. In
    otherwords, you define an M and B to define what zero maps to, what one
    maps to, etc. And you can also use t
    he labeling tool to change the
    scale label to read frequency or whatever you like.
    If your frequencies aren't in a linear progression, or if you just think
    it is simpler, use an XY graph instead, and put the frequency with each
    amplitude in a cluster. Make an array of these XY paired clusters.
    Then change the scale label.
    Greg McKaskle

  • User unable to create 2nd query against new universe

    Hello the Community,
    We have a user who can create a single query from a choice of universes but when they try and add an additional query it doesn't allow them to a different universe - there are none appearing in the list.
    Anybody know where I can fix this ?
    Thanks
    Cedric

    It's a bit strange...
    The user can select more than one universe during the creation of document ( according matrix security ) but cannot select another one universe as the first selected...
    I ( I am Administrator ) grants the right of user on Top Security Level to fix it. View on Demand and View profile were not adequate.
    thanks for your answer
    Cedric

  • How to create Business View against SQL

    We are moving from Crystal 10 to XI. Before moving we were using ASP application for dynamic parameters. Now we are planning to use Business Views or List of Values for these dynamic parameters. We are using IBM DB2 database and datasource is SQL Command Object. I have a list of dynamic parameters with SQL Statement. I want to know what is the best way to convert SQL Statement in Business View or any type of suggestion will be aapreciate.
    Thanks

    Hello Zahid,
    I checked some articles but could not find any ideas how to answer your question.
    Anyway, I am not sure if you have seen this [online BV Admin guide|http://help.sap.com/businessobject/product_guides/boexir3/en/xi3_bv_admin_en.pdf].
    Falk

Maybe you are looking for

  • Error ID : 4F530E43505002EF 01Java VM: Java HotSpot(TM) Server VM (1.4.2_04

    Weblogic 8.1 sp3 on solaris9 is crashing giving below error . Unexpected Signal : 11 occurred at PC=0xFED6D550 Function=[Unknown. Nearest: JVM_Write+0x17B90] Library=/data/mss/bea/jdk142_04/jre/lib/sparc/server/libjvm.so Current Java thread: Dynamic

  • Why acrobat form need japanese addon or font?

    I have a user that can not open my form, he says it is asking for a Japanese font. I am not using one in this form... that I know of any ideas?

  • The code from "help" doesn't work?\

    Hi I'm trying to change the color of the font of the TextArea component to white. I use this code which I copy and paste directly from "help": import mx.styles.CSSStyleDeclaration; if (_global.styles.TextArea == undefined) { _global.styles.TextArea =

  • Adobe cs4 version..I am not recording in HD when sending to write on DVD

    When I start a project, I make sure to set the download to 1080i and when I send to Encore to record to a DVD, it is not writing in HD. What am I doing wrong. Thanks for you help if you have any.

  • Error in Transport requests

    Dear All, We are having 3 clients Golden(500), Unit testing(100) and Quality(200) for one of my ongoing project. All the configurations are done in Golden Client and for doing unit testing we are transporting the transport request by transaction SCC1