Material Request

Dear all, Hi
This scenario is with respect to chemical industries, where in during processing there can be RM spillage or loss during batch processing, in such case the shop floor / production will rise an additinal material request to stores for an additional qty of the material giving the reference of that particular production order and in material consumption data this qty will get added up.
How to address this scenario, the requirement is creation of material request from production to stores.
Thanks in advance.

Dear Prasobh, thanks for your reply. I'm getting this error messsage when try with MB21which is very meets the requirement
Manual reservation for order category 10 not allowed
Message no. M7126
Diagnosis
You entered an order whose category only permits automatic reservations. The following order categories do not allow manual reservations:
10 PP production order
20 network
30 maintenance order
40 batch order (process manufacturing)
50 inspection lot
System Response
The system does not accept your specification.
Procedure
Enter a different account assignment, or cancel the processing.
If required, check whether any reservations for the specified account assignment already exist.
I have checked for other reservations, no such reservation exists, plese suggest, thanks in advance.

Similar Messages

  • Work orders to material request....

    hello gurus
    how does MRP deal with Work Order and Material Request? wats the procedure?
    thanks

    Andy,
    Thank you very much for your responses here. They are very educational.
    I have following questions,
    The Production Org is Standard Costed. What is the recommended costing method for eAM. If I use Average costing for EAM then do I have to create another org?
    If create another org then how ASCP will take into account projected shutdowns because of future PMs?
    If the Production Org is also WMS enabled then the Expense Account is greyed out in the costing tab of org parameters. If expense account is not created then Asset Groups can not be created from EAM. They however can be created from Item Master window?
    If Prod Org and EAM org are same then how we will capturs the material cost separately for both org?
    Thanks & Regards,
    Vivek

  • SAP Best practice for Material request form

    Hai Sap gurus,
    Do we have any sap best practice for material request form? If so please help me to find this best practice provided by the SAP. I searched through sap help but i was unable to find one.
    Same way i also need to find the sap best practice for Change request form too...
    Thanking you all in advance.

    Hi,
    Check these links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2b50ac90-0201-0010-d597-8d833833f9e0
    and using the service market place link to down load the best practices
    http://www.sap.com/services/bysubject/servsuptech/index.epx

  • Material Request Document

    My PP person wants to create a material request document form SAP which will be used as a request to release the material from stores for production.

    yes , i agree,  Print the shop floor paper in Co02 and print the list goods issue slip along with that.
    This slip will act as a Material request .
    Based on this document,
    stores people will issue the material with 261 movement against the order

  • Comment on Course Material requests

    Hi,
    Good comments on Course Material requests made in SDN (Illegal requests)
    Thank You! This was my first question in SDN; I got very good response.
    Happy Tony

    Hi,
    It was perfect to stop such unprofessional requests/topics.
    Let's be professional and follow the moral ethics.
    It's good for all the SAP practioners, as it stops the disguised SAP guys (claiming to be SAP guys) just by reading some key material/docs.
    Good that SAP acted rightly. I could see lot of such topics/threads asking for interview questions/training material etc... All such threads to be halted.
    Regards,
    Nataraj.

  • Material request, material issue , tracking through sap

    Dear Gurus,
    The problem is:
    user dept , design(say), requests material to stores through some slips containing inf, regarding, qty, date, requested by expecting returnable date if it is returnable, store will issue material based on their req slip, This scenarios to be captured in sap just like purchase requisition, how to do it in sap?, if dev is required plz guide me to how to develop

    Hi,
       You may go for development to create program with own screens to create the material request and store the material request number along with other details in ztable. Create custom program to refer this material request and issue the material against it with corresponding movement type. You may use the BAPI: BAPI_GOODSMVT_CREATE in background. Refer the wiki doc: How To Goods Movements with BAPI - ERP SCM - SCN Wiki
       Also refer the doc: Material Request Creation against Reservations and Issue against Request ID
    Regards,
    AKPT

  • Material request form

    Sir,
    What is the best practises available on Material request form
    what is the concept and use of material request form
    Faisal

    Hi,
    Why do you want to use request form, if you can use Purchase Requisitions or reservation to register end-users needs?
    Thanks

  • How do i get the material type after submitting a create material request?

    Hi All,
    I have to select an agent depending on the material type of the material being created? I'm not using the rule based workflow for material creation in MDG 7.0, I'm using WS46000057. How do I get the material type being used in the workflow so that I can create a rule and select an agent accordingly from a custom table.
    Any kind of help would be sincerely appreciated.
    Regards,
    Tushar..

    Why not use the rule-based workflow template?
    Where do you want the material type? This is a standard workflow template and I'm not sure you can enhance it.
    In any case, in order to read CR details, you need to use the MDG API classes. These are described in this document: Master Data Governance Application Programming Interface Guide. Keep in mind that different API classes were developed for different releases so make sure to pick the class right for your release.

  • Material request download error

    Hello Experts,
    I am facing typical material download issue, please help me out to overcome this:
    - material number in ERP has lot of speical characters say e.g. - : =
    - DNL_CUST_PROD0 / PROD1 / PROD 3 / TAX all has bee done
    - Materials are already downloaded
    - When I tried to download new materials from ERP to CRM(missing) I am getting error: as "Mat. for Initial Download: Function table not supported" ; additionally I am also getting tax sequence for country CA, but in ERP no tax classification maintained for CA for particular material. Also no data available in TSTL, TSKD etc..tables.
    Pleas let me throw your thoughts here.
    Cheers,
    Bobby

    Hello Bobby,
    Check you tax customization in R/3 and CRM.
    In CRM,you can run txn:CRM_TAXCUST_VALIDATE and check for error in tax customizing.
    Also,check note:1121999     for error funcation table not supported.
    What exactly the error message icon on the BDoc says?
    Regards,
    Shanthala Kudva.

  • Import Material

    Dear Sir / Madam,
    What is the Procedure for Purchase the Import Material.Request for explain the detail step by step with T-code.
    With Kind Regards,
    Nitin

    Search forum before posting
    Check this link for detailed steps
    http://www.sap-img.com/materials/process-of-imported-material-with-excise.htm
    http://www.sap-img.com/materials/procedure-for-import-po-and-duty.htm
    Check all this answered links
    Import Business Process and Pricing
    Re: Domain process-Import???
    Import Purchase Process
    Re: Process of import PO
    Users opposing- the Import PO  process
    Re: Import PO Processing

  • Material allocation to different Plants

    Hi,
    We have the follg business scenario:
    Plant A supplies to Plant B, C, D etc., Material Requests from Plants B, C, D etc., to Plant A is in the form of STO. We want to allocate Parts from Plant A to these receiving Plants based on customer specific priority / logic (like Date of STO, Lead Time etc.,). Based on the quantity allocated, Goods Issue should be posted to the respective STO at Plant A. Since the volume of transactions are high, we want to carry out allocation through System and then post GI.
    Through which functionality in R/3 can the above process be addressed ? Or is there any workaround ?
    Thanks.
    Raj

    Hi,
    Thanks for your immed response. I have set SPK to enable STO between Plants B, C, D etc., to Plant A. There is no prob in this. Our actual reqmt is as below:
    Let's say MATNR 12345, Stock at Plant A = 5 pcs
    Let's assume the follg STOs from other Plants:
    2 STOs from Plant B each on Day 1 and Day 2 for Qty = 1
    2 STOs from Plant C each on Day 1 and Day 3 for Qty = 1
    2 STOs from Plant D each on Day 2 and Day 3 for Qty = 1
    Based on Stock at Plant A, we want to alloc (an then post GI) as under:
    For Plant B, Alloc = 1 + 1
    For Plant C, Alloc = 1 + 1
    For Plant D, Alloc = 1
    i.e., Plant A decides to send 2 pcs for Plant B, 2 pcs for Plant C and  only 1 pcs to Plant D. This is based on first come first serve basis.
    The allocation priority is what we are looking for.
    Is there any feature to achieve this as the volume of transactions are high ...
    Thanks.
    Raj

  • Importance of the fields in Material Master

    Dear Friends,
    I would like to know the following fields and the importance in IS-OIL specific view.
    Density / Gravity and Conv.coeff -- The F1 help says if the Conversion Group used as chemical, this field is mandatory. I would like to where this field will be reflecting in further transactions.
    Transfer sign --    The F1 Help says You can activate a material for two-step plant-to-plant transfer tracking with the transfer sign. The following settings are possible:
    '  '  - no tracking available    1   - only statistical tracking   2   - tracking with gain/loss postings, but without mentioning this also we can track through MB51.
    I would appreciate if any one would give me the usage of above fields.
    Thanks,
    PKM

    Prakash KM wrote:>
    > Hi Abhishek,
    > Thanks for the reply and it really helped me.
    > Also I would like to know the importance of the field Transfer sign. It will be helpful if you through some lights on this.
    >
    > Regards,
    > PKM
    Hi Prakash,
    Here is the explanation for transfer sign
    (which is found in oil specific data):
    The system performs gain and loss postings automatically at goods issues and receipts that belong to a single tracking number.
    The gain or loss is defined as follows:
    Stock increase/stock loss = goods issue quantity - goods receipt quantity of all goods receipts
    If the result is negative, meaning that the goods issue quantity is smaller than the goods receipt quantity for all goods receipts, the system creates a gain posting.
    If the result is positive, meaning that the goods issue quantity is larger than the goods receipt quantity for all goods receipts, the system creates a loss posting.
    As soon as a gain or loss occurs, the system updates the valuation record for the material to reflect the increase in quantity or the loss in quantity at the receiving plant.
    Basic Settings:
    You define the basis for calculation for the gain and loss determination in Customizing. The following options exist as a basis for calculation for the gains and losses:
    ●      The material price at the receiving plant
    ●      The material price at the issuing plant at the time at which the gain or loss occurs
    ●      The material price at the issuing plant at the time of the goods issue
    ●      The condition record for the material
    Request you to reward points if helpful...

  • Dilemma around material issue from stores

    Hello
    A national water management authority is replacing their paper-based systems with Oracle.  They have sufficient licenses of Oracle Purchasing but not enough of Inventory and none of Order Management.
    Departments send in their material requests for approval to their departmental managers.  After approval, a departmental representative picks up the material from stores.  This process is entirely now on paper.  In my opinion, Move Orders is the "best" Oracle solution for this?  Am I right?
    However, our hands are tied by the constraint of fixed Inventory licenses.  The number of requesters is many times more.  To get around, we plan to have departmental batch user IDs in Oracle e.g. ACCOUNTING_DEPARTMENT_STORES_REQUESTER.  Employees will enter their Move Order requests with their departmental user IDs and use the Reference field for their internal employee numbers.  Is this the only option?
    Regards,
    Sanjib

    Hello,
    If you are open for customization you can try following.
    0. create a dummy subinventory ..say DEPT ...(or u can also create multiple subinventories for each department ..)
    1. Let the users create Internal Requisitions using their named user name ... here source organization and destination organization will be same but source subinventories will be stores and destination subinventory will be the DEPT subinventory.
    2. Let it go for approval to department heads.
    3. Once approved, write a custom concurrent program that will look for the approved IRs with destination subinventory = DEPT, and create Approved Move Orders of type Move Order Issue ...here Issue-To-Account should be derived based on Department. You can populate some DFF field on move order header with the reference of the Internal Requisition Id (This link will also be used in the IR selection criteria).
    There are Public APIs available to create Move Orders.
    (Requisition Approval workflow can also be modified to call the custom procedure, instead of scheduled concurrent program)
    4. Now Stores user (an Inventory user) will allocate and transact the material to department against the issue
    Thanks,
    Hrishi

  • Query to display PO number and wip_entity_name

    hi
    i have this requirement as to add the following to an existing query (based on standard tables)
    SELECT
         MMT.INVENTORY_ITEM_ID          DT_INVENTORY_ITEM_ID
    ,     MMT.ORGANIZATION_ID          DT_ORGANIZATION_ID
    ,     MMT.TRANSACTION_DATE          DT_TRANSACTION_DATE
    ,     MMT.TRANSACTION_SOURCE_ID     DT_VOUCHER_NO
    ,     NVL(MMT.TRANSACTION_COST,0)     DT_TRANSACTION_COST
    ,     MTT.TRANSACTION_TYPE_NAME     DT_TRANSACTION_TYPE_NAME
    ,     NVL(MMT.NEW_COST,0)          DT_NEW_COST
    ,     DECODE((MMT.PRIMARY_QUANTITY/ABS(MMT.PRIMARY_QUANTITY)),1,MMT.PRIMARY_QUANTITY,0)
                             DT_QTY_IN
    ,     DECODE((MMT.PRIMARY_QUANTITY/ABS(MMT.PRIMARY_QUANTITY)),-1,MMT.PRIMARY_QUANTITY,0) * -1
                             DT_QTY_OUT
    FROM
         MTL_MATERIAL_TRANSACTIONS      MMT
    ,     MTL_TRANSACTION_TYPES           MTT
    WHERE
         MMT.PRIMARY_QUANTITY <> 0
    AND      MMT.TRANSACTION_TYPE_ID  NOT IN (101,120,80)
    /*     ABOVE CONDITION TO EXCLUDE OPENING BALANCE TRANSACTIONS
         AND AVERAGE COST UPDATE
    AND      MMT.SUBINVENTORY_CODE <> 'OM'
    AND     MMT.TRANSACTION_TYPE_ID = MTT.TRANSACTION_TYPE_ID
    AND     MMT.TRANSACTION_DATE BETWEEN :P_START_DATE AND :P_END_DATEwhenever the MTL_TRANSACTION_TYPES MTT.TRANSACTION_TYPE_NAME='PO Receipt' then display the PO number
    similarly WHEN MTL_TRANSACTION_TYPES MTT.TRANSACTION_TYPE_NAME= Wip Component Issue then display wip_entity name
    P_START_DATE AND :P_END_DATE i have put is 01-jan-2011 and 28-feb-2011
    once i add these conditions to the query ,the query displays less amount of rows ie 2014 rows whereas the first query used to return 2357 rows
    this is the modified query
    SELECT
    MMT.INVENTORY_ITEM_ID DT_INVENTORY_ITEM_ID,
    case when MTT.TRANSACTION_TYPE_NAME='WIP component issue' then wip.WIP_ENTITY_NAME
    when MTT.TRANSACTION_TYPE_NAME='WIP Component Return' then wip.WIP_ENTITY_NAME
    when MTT.TRANSACTION_TYPE_NAME='NP-Material Request' then wip.WIP_ENTITY_NAME
    end job_number
    , MMT.ORGANIZATION_ID DT_ORGANIZATION_ID
    , MMT.TRANSACTION_DATE DT_TRANSACTION_DATE
    , MMT.TRANSACTION_SOURCE_ID DT_VOUCHER_NO
    , NVL(MMT.TRANSACTION_COST,0) DT_TRANSACTION_COST
    , MTT.TRANSACTION_TYPE_NAME DT_TRANSACTION_TYPE_NAME
    , NVL(MMT.NEW_COST,0) DT_NEW_COST
    , DECODE((MMT.PRIMARY_QUANTITY/ABS(MMT.PRIMARY_QUANTITY)),1,MMT.PRIMARY_QUANTITY,0)
    DT_QTY_IN
    , DECODE((MMT.PRIMARY_QUANTITY/ABS(MMT.PRIMARY_QUANTITY)),-1,MMT.PRIMARY_QUANTITY,0) * -1
    DT_QTY_OUT
    FROM
    MTL_MATERIAL_TRANSACTIONS MMT
    , MTL_TRANSACTION_TYPES MTT
    ,WIP_ENTITIES WIP
    WHERE
    MMT.PRIMARY_QUANTITY <> 0
    AND MMT.TRANSACTION_TYPE_ID NOT IN (101,120,80)
    AND MMT.TRANSACTION_SOURCE_ID = WIP.WIP_ENTITY_ID(+)
    /* ABOVE CONDITION TO EXCLUDE OPENING BALANCE TRANSACTIONS
    AND AVERAGE COST UPDATE
    AND MMT.SUBINVENTORY_CODE <> 'OM'
    AND MMT.TRANSACTION_TYPE_ID = MTT.TRANSACTION_TYPE_ID
    AND MMT.TRANSACTION_DATE BETWEEN :P_START_DATE AND :P_END_DATE
    union
    SELECT
    MMT.INVENTORY_ITEM_ID DT_INVENTORY_ITEM_ID,
    case
    when MTT.TRANSACTION_TYPE_NAME='PO Receipt' then PHA.SEGMENT1 end job_number
    , MMT.ORGANIZATION_ID DT_ORGANIZATION_ID
    , MMT.TRANSACTION_DATE DT_TRANSACTION_DATE
    , MMT.TRANSACTION_SOURCE_ID DT_VOUCHER_NO
    , NVL(MMT.TRANSACTION_COST,0) DT_TRANSACTION_COST
    , MTT.TRANSACTION_TYPE_NAME DT_TRANSACTION_TYPE_NAME
    , NVL(MMT.NEW_COST,0) DT_NEW_COST
    , DECODE((MMT.PRIMARY_QUANTITY/ABS(MMT.PRIMARY_QUANTITY)),1,MMT.PRIMARY_QUANTITY,0)
    DT_QTY_IN
    , DECODE((MMT.PRIMARY_QUANTITY/ABS(MMT.PRIMARY_QUANTITY)),-1,MMT.PRIMARY_QUANTITY,0) * -1
    DT_QTY_OUT
    FROM
    MTL_MATERIAL_TRANSACTIONS MMT
    , MTL_TRANSACTION_TYPES MTT
    ,PO_HEADERS_ALL PHA
    ,PO_LINES_ALL POL
    WHERE
    MMT.PRIMARY_QUANTITY <> 0
    AND MMT.TRANSACTION_TYPE_ID NOT IN (101,120,80)
    AND MMT.TRANSACTION_SOURCE_ID=POL.PO_LINE_ID
    AND PHA.PO_HEADER_ID=POL.PO_LINE_ID
    /* ABOVE CONDITION TO EXCLUDE OPENING BALANCE TRANSACTIONS
    AND AVERAGE COST UPDATE
    AND MMT.SUBINVENTORY_CODE <> 'OM'
    AND MMT.TRANSACTION_TYPE_ID = MTT.TRANSACTION_TYPE_ID
    AND MMT.TRANSACTION_DATE BETWEEN :P_START_DATE AND :P_END_DATEkindly guide
    thanking in advance

    Hi,
    There could be nothing wrong in your Query, as all the WiP Assembly completions, WIP Negative Component Issue ,WIP Negative Component Return etc transaction types could be there in the Mat txns table for this period. Please check them

  • Step by step bapi for purchase order

    hi friends,
    i am very new to bapi i have requiremet to upload purchase order
    using bapi can any one tell me how to use bapi_po_create
    which parameter i hvae to pass .plz do the need ful.
    regards
    sonu

    Hi Sir,
    I am sending you the code in which i have implemented bapi pocreate.Please go through the FM ,you will easily understand it.
    Plz do reward if useful.
    Thankx.
    method do_handle_event.
    *CALL METHOD SUPER->DO_HANDLE_EVENT
    EXPORTING
       EVENT           =
       HTMLB_EVENT     =
       HTMLB_EVENT_EX  =
       GLOBAL_MESSAGES =
    RECEIVING
       GLOBAL_EVENT    =
      data: event_id type string.
      data zpr_num1 type banfn.
      data zreturn type zsn_bapiret2.
      data ret type bapireturn-type.
      data message type bapi_msg.
      data returnval type bapimepoheader-po_number.
      data: r_view type ref to if_bsp_page.
      data: crt_view type ref to if_bsp_page.
      data po_num_head type bapimepoheader.
      data zpoheader_it type zbapimepoheader_tab.
      data zpoheaderx_it type zbapimepoheaderx_tab.
    to add a new item to list
      if htmlb_event is bound and htmlb_event->server_event = 'onadd'.
        zpr_num = request->get_form_field( 'PRNo' ) .
        data: zpr_num3 type banfn.
        call function 'ZCONVERT_ALPHA'
          exporting
            input  = zpr_num
          importing
            output = zpr_num3.
        zpr_num = zpr_num3.
        data: temp_tab1  type zrmheader.
        delete from zrmheader.
        zpoheader-vendor = request->get_form_field( 'Vendor' ) .
        zpoheader-purch_org = request->get_form_field( 'POrg' ).
        zpoheader-pur_group = request->get_form_field( 'PGrp' ).
        zpoheader-doc_type = 'NB'.
        zpoheader-item_intvl = request->get_form_field( 'Item' ).
        zpoheader-comp_code = request->get_form_field( 'CCode' ).
        zpoheader-doc_date = request->get_form_field( 'DocDate' ).
        delivdate_new = request->get_form_field( 'DelivDate' ).
        temp_tab1-vendor = request->get_form_field( 'Vendor' ) .
        temp_tab1-purch_org = request->get_form_field( 'POrg' ).
        temp_tab1-pur_group = request->get_form_field( 'PGrp' ).
        temp_tab1-doc_type = 'NB'.
        temp_tab1-item_intvl = request->get_form_field( 'Item' ).
        temp_tab1-comp_code = request->get_form_field( 'CCode' ).
        temp_tab1-doc_date = request->get_form_field( 'DocDate' ).
        data: temp_tabx1  type zrmheaderx.
        delete from zrmheaderx.
        temp_tabx1-vendor = 'x'.
        temp_tabx1-purch_org = 'x'.
        temp_tabx1-pur_group = 'x'.
        temp_tabx1-doc_type = 'x'.
        temp_tabx1-comp_code = 'x'.
        temp_tabx1-doc_date = 'x'.
        insert into zrmheader values temp_tab1.
        insert into zrmheaderx values temp_tabx1.
        data: temp_tab  type zrmitem .
        data: temp_tabx type zrmitemx.
        zitem1-acctasscat = request->get_form_field( 'A' ).
        temp_tab-acctasscat = request->get_form_field( 'A' ).
        zitem1-item_cat = request->get_form_field( 'I' ).
        temp_tab-item_cat = request->get_form_field( 'I' ).
        zitem1-material = request->get_form_field( 'Material' ).
        temp_tab-material = request->get_form_field( 'Material' ).
        zitem1-quantity = request->get_form_field( 'POQuantity' ).
        temp_tab-quantity = request->get_form_field( 'POQuantity' ).
        zitem1-po_unit = request->get_form_field( 'OUN' ).
        temp_tab-po_unit = request->get_form_field( 'OUN' ).
        zitem1-net_price = request->get_form_field( 'NetPrice' ).
        temp_tab-net_price = request->get_form_field( 'NetPrice' ).
        zitem1-plant = request->get_form_field( 'Plnt' ).
        temp_tab-plant = request->get_form_field( 'Plnt' ).
        zitem1-po_item = request->get_form_field( 'Item' ).
        temp_tab-po_item = request->get_form_field( 'Item' ).
        zitem1-stge_loc = request->get_form_field( 'Sloc' ).
        temp_tab-stge_loc = request->get_form_field( 'Sloc' ).
        zitem1-customer = request->get_form_field( 'Customer' ).
        temp_tab-customer = request->get_form_field( 'Customer' ).
        zitem1-incoterms2 = 'XDFGRT'.
        temp_tab-incoterms2 = 'XDFGRT'.
        append  zitem1 to zitem.
        insert into zrmitem values temp_tab.
        zitemx1-acctasscat = 'x'.
        zitemx1-item_cat = 'x'.
        zitemx1-material = 'x'.
        zitemx1-quantity = 'x'.
        zitemx1-net_price = 'x'.
        zitemx1-plant = 'x'.
        zitemx1-po_item = 00010.
        zitemx1-po_itemx = 'x'.
        zitemx1-stge_loc = 'x'.
        zitemx1-customer = 'x'.
        zitemx1-incoterms2 = 'x'.
       append  zitemx1 to zitemx.
        temp_tabx-acctasscat = 'x'.
        temp_tabx-item_cat = 'x'.
        temp_tabx-material = 'x'.
        temp_tabx-quantity = 'x'.
        temp_tabx-net_price = 'x'.
        temp_tabx-plant = 'x'.
        temp_tabx-po_item = 00010.
        temp_tabx-po_itemx = 'x'.
        temp_tabx-stge_loc = 'x'.
        temp_tabx-customer = 'x'.
        temp_tabx-incoterms2 = 'x'.
        insert into zrmitemx values temp_tabx.
        select * from zrmitem into corresponding fields of table zitem.
        zpr_num = request->get_form_field( 'PRNo' ) .
        call function 'ZCONVERT_ALPHA'
          exporting
            input  = zpr_num
          importing
            output = zpr_num1.
            LEN           =
        call function 'BAPI_REQUISITION_GETDETAIL'
          exporting
            number                               = zpr_num1
      ACCOUNT_ASSIGNMENT                   = ' '
      ITEM_TEXTS                           = ' '
      SERVICES                             = ' '
      SERVICE_TEXTS                        = ' '
          tables
            requisition_items                    = item_tab
      REQUISITION_ACCOUNT_ASSIGNMENT       =
      REQUISITION_TEXT                     =
      REQUISITION_LIMITS                   =
      REQUISITION_CONTRACT_LIMITS          =
      REQUISITION_SERVICES                 =
      REQUISITION_SERVICES_TEXTS           =
      REQUISITION_SRV_ACCASS_VALUES        =
      RETURN                               =
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait = 'X'.
    *IMPORTING
    *RETURN = i_return
    to save the item details and generate a PO number
      elseif htmlb_event is bound and htmlb_event->server_event = 'onsave'.
        zpr_num = request->get_form_field( 'PRNo' ) .
        data: zpr_num4 type banfn.
        call function 'ZCONVERT_ALPHA'
          exporting
            input  = zpr_num
          importing
            output = zpr_num4.
        zpr_num = zpr_num4.
        data: temp_t2 type zrmsched,
              count2 type n,
              a2 type n value 1.
        data:temp_t type zrmitem,
             count type n,
             a type n value 1.
        select * from zrmitem into corresponding fields of table data_tab.
        count = sy-dbcnt.
        do count times.
          read table data_tab into temp_t index a.
          a = a + 1.
          zitem1-po_item = temp_t-po_item.
          zitem1-acctasscat = temp_t-acctasscat.
          zitem1-item_cat = temp_t-item_cat.
          zitem1-material = temp_t-material.
          zitem1-quantity = temp_t-quantity.
          zitem1-po_unit = temp_t-po_unit.
          zitem1-net_price = temp_t-net_price.
          zitem1-plant = temp_t-plant.
          zitem1-stge_loc = temp_t-stge_loc.
          zitem1-customer = temp_t-customer.
          zitem1-incoterms2 = temp_t-incoterms2.
          append zitem1 to zitem.
          zitemx1-acctasscat = 'x'.
          zitemx1-item_cat = 'x'.
          zitemx1-material = 'x'.
          zitemx1-quantity = 'x'.
          zitemx1-net_price = 'x'.
          zitemx1-plant = 'x'.
          zitemx1-po_item = temp_t-po_item.
          zitemx1-po_itemx = 'x'.
          zitemx1-stge_loc = 'x'.
          zitemx1-customer = 'x'.
          zitemx1-incoterms2 = 'x'.
          append  zitemx1 to zitemx.
        enddo.
    count2 = sy-dbcnt.
        zpoheader-vendor = request->get_form_field( 'Vendor' ) .
        zpoheader-purch_org = request->get_form_field( 'POrg' ).
        zpoheader-pur_group = request->get_form_field( 'PGrp' ).
        zpoheader-doc_type = 'NB'.
        zpoheader-item_intvl = request->get_form_field( 'Item' ).
        zpoheader-comp_code = request->get_form_field( 'CCode' ).
        zpoheader-doc_date = request->get_form_field( 'DocDate' ).
        delivdate_new = request->get_form_field( 'DelivDate' ).
        zpoheaderx-vendor = 'x'.
        zpoheaderx-purch_org = 'x'.
        zpoheaderx-pur_group = 'x'.
        zpoheaderx-doc_type = 'x'.
        zpoheaderx-comp_code = 'x'.
        zpoheaderx-doc_date = 'x'.
        data: zpovendor type elifn.
        call function 'ZCONVERT_ALPHA'
          exporting
            input  = zpoheader-vendor
          importing
            output = zpovendor.
        zpoheader-vendor = zpovendor.
        call function 'BAPI_PO_CREATE1'
          exporting
            poheader                     = zpoheader
            poheaderx                    = zpoheaderx
      POADDRVENDOR                 =
      TESTRUN                      =
      MEMORY_UNCOMPLETE            =
      MEMORY_COMPLETE              =
      POEXPIMPHEADER               =
      POEXPIMPHEADERX              =
      VERSIONS                     =
      NO_MESSAGING                 =
      NO_MESSAGE_REQ               =
      NO_AUTHORITY                 =
      NO_PRICE_FROM_PO             =
         importing
           exppurchaseorder             = po_num
             EXPHEADER                    = PO_NUM_HEAD
      EXPPOEXPIMPHEADER            =
         tables
            RETURN                       = zreturn
            poitem                       = zitem
            poitemx                      = zitemx
      POADDRDELIVERY               =
    POSCHEDULE                   = zposched
    POSCHEDULEX                  = zposchedx
      POACCOUNT                    =
      POACCOUNTPROFITSEGMENT       =
      POACCOUNTX                   =
      POCONDHEADER                 =
      POCONDHEADERX                =
      POCOND                       =
      POCONDX                      =
      POLIMITS                     =
      POCONTRACTLIMITS             =
      POSERVICES                   =
      POSRVACCESSVALUES            =
      POSERVICESTEXT               =
      EXTENSIONIN                  =
      EXTENSIONOUT                 =
      POEXPIMPITEM                 =
      POEXPIMPITEMX                =
      POTEXTHEADER                 =
      POTEXTITEM                   =
      ALLVERSIONS                  =
      POPARTNER                    =
      POCOMPONENTS                 =
      POCOMPONENTSX                =
      POSHIPPING                   =
      POSHIPPINGX                  =
      POSHIPPINGEXP                =
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
             wait = 'X'
         IMPORTING
         RETURN =
        delete from zrmitem.
        delete from zrmitemx.
        select * from zrmitem into corresponding fields of table zitem.
        if po_num = ' '.
          po_num = 'Try Again'.
        endif.
    to store po_num and corresponding pr number
        data: temp_tt type zpo_pr_nums.
        temp_tt-pr_num = zpr_num.
        temp_tt-po_num = po_num.
        insert into zpo_pr_nums values temp_tt.
    to store po num and corresponding delivery date
        data: wa11 type zpo_delivdate.
        wa11-po_number = po_num.
        wa11-deliv_date = delivdate_new.
        insert into zpo_delivdate values wa11.
        zpoheader-vendor = ' '.
        zpoheader-purch_org = ' '.
        zpoheader-pur_group = ' '.
        zpoheader-doc_type = ' '.
        zpoheader-item_intvl = ' '.
        zpoheader-comp_code = ' '.
        zpoheader-doc_date = ' '.
        delivdate_new = ' '.
    to enter a PR Number
      elseif htmlb_event is bound and htmlb_event->server_event = 'onenter'.
        delete from zrmitem.
        delete from zrmitemx.
        select * from zrmitem into corresponding fields of table zitem.
        zpr_num = request->get_form_field( 'PRNo' ) .
        call function 'ZCONVERT_ALPHA'
          exporting
            input  = zpr_num
          importing
            output = zpr_num1.
            LEN           =
        call function 'BAPI_REQUISITION_GETDETAIL'
          exporting
            number                               = zpr_num1
      ACCOUNT_ASSIGNMENT                   = ' '
      ITEM_TEXTS                           = ' '
      SERVICES                             = ' '
      SERVICE_TEXTS                        = ' '
          tables
            requisition_items                    = item_tab
      REQUISITION_ACCOUNT_ASSIGNMENT       =
      REQUISITION_TEXT                     =
      REQUISITION_LIMITS                   =
      REQUISITION_CONTRACT_LIMITS          =
      REQUISITION_SERVICES                 =
      REQUISITION_SERVICES_TEXTS           =
      REQUISITION_SRV_ACCASS_VALUES        =
      RETURN                               =
        call function 'BAPI_TRANSACTION_COMMIT'
          exporting
            wait = 'X'.
    *IMPORTING
    *RETURN = i_return
    to select an item from drop down item menu
      elseif htmlb_event is bound and htmlb_event->server_event = 'select'.
        data: zselection2 type bnfpo.
        data: data type ref to cl_htmlb_dropdownlistbox.
        zpr_num = request->get_form_field( 'PRNo' ) .
        data: zpr_num2 type banfn.
        call function 'ZCONVERT_ALPHA'
          exporting
            input  = zpr_num
          importing
            output = zpr_num2.
        data ?= cl_htmlb_manager=>get_data(
                                            request = runtime->server->request
                                            name    = 'dropdownlistbox'
                                            id      = 'ItemSel'
        if data is not initial.
          zselection2 = data->selection.
        endif.
        zpoheader-vendor = request->get_form_field( 'Vendor' ) .
        zpoheader-purch_org = request->get_form_field( 'POrg' ).
        zpoheader-pur_group = request->get_form_field( 'PGrp' ).
        zpoheader-doc_type = 'NB'.
        zpoheader-item_intvl = request->get_form_field( 'Item' ).
        zpoheader-comp_code = request->get_form_field( 'CCode' ).
        zpoheader-doc_date = request->get_form_field( 'DocDate' ).
        call function 'BAPI_REQUISITION_GETDETAIL'
          exporting
            number                               = zpr_num2
      ACCOUNT_ASSIGNMENT                   = ' '
      ITEM_TEXTS                           = ' '
      SERVICES                             = ' '
      SERVICE_TEXTS                        = ' '
          tables
            requisition_items                    = item_tab
      REQUISITION_ACCOUNT_ASSIGNMENT       =
      REQUISITION_TEXT                     =
      REQUISITION_LIMITS                   =
      REQUISITION_CONTRACT_LIMITS          =
      REQUISITION_SERVICES                 =
      REQUISITION_SERVICES_TEXTS           =
      REQUISITION_SRV_ACCASS_VALUES        =
      RETURN                               =
        data wa1 type bapieban.
        loop at item_tab into wa1.
          if wa1-preq_item = zselection2.
            item_new = wa1-preq_item.
            material_new = wa1-material.
            plant_new = wa1-plant.
            quantity_new = wa1-quantity.
            unit_new = wa1-unit.
            delivdate_new = wa1-deliv_date.
          endif.
        endloop.
      endif.

Maybe you are looking for

  • Cannot add features to windows 8.1 single language

    When i tried to update from windows 8.1 single language to windows 8.1 professional, the add new feature application in my windows came up with an error saying, process could not be completed, contact support. I already have my key, but now I cannot

  • Is it possible to add a field in Attachment screen?

    Hello Exports, I wan to know is it possible to add a  customer field in Attachment screen (Project, RFx,MA, A) . As there are a lots of attachments added in normal working in various documents like project,MA,RFX etc, so whether can add a field  to c

  • Links that scroll down in middle of page

    Hi On my home page I have a bullet list of links that all go individually to one new page with those bullet lists on it. They go all the way down the page with a brief explanation. How can I make the link from the home page take me directly to the bu

  • Public Part : Deployable Webservice Proxy DC

    Hi All, I have a deployable Webservice Proxy DC, which is used to create webservice proxy. I am using those webservice proxy in my Portal application. May I know what needs to be defined in public part of webservice proxy dc, so that I can use it as

  • Avid Codec on FCP

    Hi. Currently i am trying to view QT with AVmp from Avid. I have download the AvidCodecsLE, but I don't know what is the right sequence setting to use. I've tried all but it kept saying "Codec not found. You may be using a compression type without th