Purchase order - Function - Confirmation

Hi,
I need find a function to simulate the confirmations in purchase order.
The standard process is strange. Sometimes, reduces even though the total amount does not reach a confirmed total order.  It's like the standard randomly chose the quantity to reduce.
Best Regards
Edited by: Andréa Molina on Feb 14, 2012 7:16 PM

We created a new way to make the p.o. confirmations.
The process of confirmations should be like a standard process (ME22N). When standard reduce, the Z program reduce too. To try make that I studied the standard process, but the process does not follow a logical pattern common to all situations.
After all, in our process we have two confirmations:
Y1 - Confirme and creat a requirement in MD04 and Y3 - Ship, don't create a new requirement BUT repalces the Y1.
Exemple: The vendor confirm the deliv. date. The Y1 confirmation is created. When the vendor send the item (if international vendor) a new confirmation is created - the Y3.
Now, follows a real exemple of situation:
The item has 6.000 PC - P.O quantity (total).
All conditions below has one Y1 and Y3 confirmations:
Situation 1: 3000(Y1) and 3050(Y3). The quantity reduces was 50.
Situation 2: 2000(Y1) and 2050(Y3). Nothing reduces.
Situation 3: 3050(Y1) and 3000(Y3). The quantity reduces was 50.
Situation 4: 3000(Y1) and 3000(Y3). Nothing reduces.
Situation 5: 3050(Y1) and 3050(Y3). The quantity reduces was 100.
The difference between the 1-3 and the 4 is only the quantity. The quantity isn't the same of total quantity of P.O.
It appears that when the sum of quantities a value greater than half of the total the standard  reduces the quantities over half. But using logic it seems to me somewhat risky.
So,  I'm looking for a bapi/function that do this count and provides the reduces quantity like the ME232N transaction.

Similar Messages

  • BAPI for Purchase Order Vendor Confirmations

    Can any body suggest me the BAPI for the purchase order vendor confirmations transaction code me22n - Tab<b>-(Confirmations)</b> alone.
    regs,
    Raja

    Dear Asha,
    Pls find the below code, this handles only the BDC part of the program.Updates only the EKES table thru standard confirmation tab on ME22N.
    Kindly clarify any doubts in this reg.
    regs,
    Raja.
    FORM ins_stdtable .
      DATA:var TYPE c LENGTH 30,
      cstr(02) TYPE n value '01'.
      data istr(02) type n value '00'.
      DATA recno TYPE i.
      data: eblc type c length 5,
      ebli type i.
      DATA: kebeln LIKE utab-ebeln.
      DATA: BEGIN OF indx,
             ebelp type ekes-ebelp,
             eindx type i,
            END OF indx.
      DATA : CNT TYPE I value 1.
      DATA: COUNTER(2) TYPE N VALUE '01',
      ROWS TYPE P.
      DATA: w_textout            LIKE t100-text.
      DATA: gd_update TYPE i,
            gd_lines TYPE i.
      data :waek like indx,
      itabek LIKE TABLE OF waek.
    *Used to stores error information from CALL TRANSACTION Function Module
      DATA: BEGIN OF messtab OCCURS 0.
              INCLUDE STRUCTURE bdcmsgcoll.
      DATA: END OF messtab.
      SELECT MAX( ETENS ) FROM ekes INTO zetens WHERE ebeln =
      ekko-ebeln.
      recno = zetens.
      LOOP AT utab.
        SELECT distinct ebelp INTO CORRESPONDING FIELDS OF TABLE
        itabek  FROM eket  WHERE ebeln = ekko-ebeln.
        loop at itabek into waek.
          ebli =  ebli + 1.
          waek-eindx = ebli.
          modify itabek from waek.
        endloop.
        loop at itabek into waek where ebelp = utab-ebelp.
          eblc = waek-eindx.
          condense eblc.
        endloop.
        AT NEW ebeln.
          PERFORM bdc_dynpro      USING 'SAPLMEGUI' '0014'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=MECHOB'.
          PERFORM bdc_dynpro      USING 'SAPLMEGUI' '0002'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=MEOK'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'MEPO_SELECT-EBELN'.
          PERFORM bdc_field       USING 'MEPO_SELECT-EBELN'
                                         utab-ebeln.
          AT New EBELP.
            perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
            perform bdc_field       using 'BDC_CURSOR'
                                      'DYN_6000-LIST'.
            perform bdc_field       using 'DYN_6000-LIST'
                                     eblc.
            perform bdc_field       using 'BDC_OKCODE'
                                          '=DDOWN3200'.
            PERFORM bdc_dynpro      USING 'SAPLMEGUI' '0014'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          '=TABIDT15'.
            perform bdc_field       using 'DYN_6000-LIST'
                                    eblc.
            PERFORM bdc_dynpro      USING 'SAPLMEGUI' '0014'.
            PERFORM bdc_field       USING 'BDC_OKCODE'
                                          'PICK'.
          ENDAT.
        ENDAT.
        PERFORM bdc_field       USING 'DYN_6000-LIST'
                                          eblc.
        recno = recno + 1.
        cstr = recno.
        counter = cstr.
    *This is to check whether the scheduled line item exceeding 12 rows. if so, use *page up
        if counter >= 13.
          rows = counter MOD 13.
          istr = ( ( counter - rows ) / 13 ).
          do istr times.
            perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
            perform bdc_field       using 'BDC_OKCODE'
                                    '=EINB_CREATE'.
          enddo.
          DO 2 TIMES.
            perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
            perform bdc_field       using 'BDC_OKCODE'
                                    '=P+'.
          enddo.
          COUNTER = '03'.
          cstr = '03'.
        ENDIF.
        CONCATENATE 'EKES-EBTYP('  cstr  ')' INTO var.
        PERFORM bdc_field       USING 'BDC_CURSOR'
                                          var.
        PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/00'.
        PERFORM bdc_field       USING var
                                    utab-ebtyp.
        CONCATENATE 'RM06E-EEIND('  cstr  ')' INTO var.
        PERFORM bdc_field       USING var
                                       utab-eeind.
        CONCATENATE 'EKES-MENGE('  cstr  ')' INTO var.
        PERFORM bdc_field       USING var
                                       utab-menge.
        CONCATENATE 'J_3ASZDI-J_3ASIZED('  cstr  ')' INTO var.
        PERFORM bdc_field       USING var
                                       utab-j_3asize.
        AT END OF Ebelp.
          PERFORM bdc_dynpro      USING 'SAPLMEGUI' '0014'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                      '=MESAVE'.
          perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
          perform bdc_field       using 'BDC_OKCODE'
                                    '/00'.
          CALL TRANSACTION 'ME22N' USING bdcdata MODE 'E'.
          IF sy-subrc EQ 0.
            savedone = 'Y'.
            saveflag = 'Y'.
            initflag = 'N'.
            MESSAGE 'SAVED' TYPE 'I'.
          else.
            saveflag = 'N'.
            savedone = 'N'.
            initflag = 'Y'.
            MESSAGE 'Not Saved' Type 'I'.
          endif.
          CLEAR: bdcdata.
          REFRESH bdcdata.
        ENDAT.
      ENDLOOP.
    ENDFORM.
    Hope this will help u

  • How to create the Copy icon in the change Purchase order functionality

    Hi,
    In the shopping cart creation screen, there has a option to copy one Item in the Items in Shopping Cart section.This functionality is supplied by standard SAP.
    Now I will have to build the same logic ( Copy Icon with the copy and paste logic)  in the Cahnge Purchase Order functionality.
    So anybody told me how this can happen?
    Also want to know the BADI or some Function Module name from where standard  SAP did the same thing ?
    Thanks for your help in advance.

    Hi. You could add a new button by amending the template, then use the BBP_DOC_CHANGE_BADI to copy the item when it is pressed.
    Just copy all the details for the line to be copied in the BADI. I think you will have to generate new GUIDs for the new lines using function GUID_CREATE. All the other GUIDs, header, partner etc could be copied from what was already there.
    Alternatively, still using BBP_DOC_CHANGE_BADI, you could add a new custom field, see note 672960, called "Copy Item" and the user could enter an X or something in there to indicate they want to copy.
    Or how about a number of copies, they could enter 1 for 1 copy, 10 for 10 and so on?
    When the user presses check the BADI runs and you copy the lines.
    It would not be as neat to look at as the copy button, but it would actually give more functionality and would mean you would not have to mess around with templates.
    Regards,
    Dave.

  • List of purchase order without confirmation

    Dear guru  ,
    I search a list of purchase order without confirmation of the vendor.
    Does exist this list in standard sap ?
    Thanks in advance.

    No Std report exist to pull the informaiton where confiramtion control key is populated but confiramtion is not created.
    please use table EKPO and EKES and write the Query
    you will get what you need from this query

  • BADI for purchase order item confirmation?

    Hi all,
    In Purchase Order change mode (ME22N), we want to calculate the delivery date based on the confirmation date that was entered in the PO item detail, confirmation tab (instead of based on the PO creation date).
    Please help by specifing Which BADI should we use for that purpose? And which method will be helpful? 
    Thanks,
    Vamshi.

    Hi
    You can use BADI ME_PROCESS_PO_CUST
    Ranga

  • Purchase Order : function to determine the purchase order number

    Hi,
    I'm working on data migration to create purchase order. I must use the internally range number. Does anybody knows which function must i use to create the purchase order number before calling the bapi bapi_po_create ?
    with regards
    Jean-Luc Ledoux

    Hi,
    The BAPI is designed to generate the next free number that is defined by the company and allocate it in series.
    This is taken care internally.
    explain the scenario like as from what data ur creating the PO and wht exactly do u mean by having ur own internal number range.....
    No body will have 2 number ranges to define PO....
    if ur uploading data from legacy system then u can have 2 fields called as old purchase order number and purchase order number in new erp system.
    if this is ur scenario ask how the functional mapping is done in the company to accomadate legacy purchase order numbers.
    Regards,
    Jayaram Maganti

  • Purchase Order - Auto Confirmation

    We have configured the purchase info record with production version, BOM and Recipe. The recipe has a number of resources which we have applied costs to, is there a method to configure an automatic confirmation to occur which would be triggered by the Goods Receipt of the Purchase Order?

    Not possible in standard system.

  • Return Purchase Order Functionality

    Hi ,
    I have created a Return PO ( With R as checked) and now trying to do MIGO agst that.
    In MIGO , what options i have to select. I can recall there was an option for "GOOD RECEIPT" and "RETURN PURCHASE ORDER" , but here "RETURN PURCHASE ORDER" is not coming as a reference document.
    Could u pls tell me the reason for that or how can I make a GR for that Purchase Order ?
    Regards
    SHREY

    Hi,
    Select option Goods Receipt > Purchase Order in MIGO and follow the below process.
    1. ME21N - Create a Returns PO (Activate "Returns" indicator for PO line item)
    2. MIGO - Goods Receipt > Purchase Order (Returns PO) (Here system will hit Mvmt type "161" and you can also select Un-restricted/blocked stock from where you want to return the stock)
    3. J1IS u2013 Excise Invoice Other Movements
    Here click on u201Ccreateu201D button to create an outgoing excise invoice and reverse the CENVAT Amount.
    Here put all details as below and Press u201CEnteru201D.
    Ref.doc.type - MATD
    Doc Number - Material document No of 161 mvmt
    Doc Year
    Series Group
    Excise Group
    Vendor
    Here check BED, ECS and SECess values to be reversed and click on u201CSaveu201D button to post the excise invoice.
    4. J1IV - Post and Print Outgoing Excise Invoice.
    5. MIRO - Credit memo w.r.t. Returns PO.

  • BBPIV09: Find Purchase Order Functionality

    Hello SRM Experts
      I am trying to create an Invoice using Invoice Clerk role in IMS . Transaction BBPIV09. When I try to find POs from this screen system takes me to the find Invoices screen. This screen has two options either create invoices or display invoices.
    When I press creat invoice button to go back to the Invoice Entry page ,and then again select Find Purchase Orders, system takes me to the PO Search screen.
    Has anyone encountered this problem in IMS to help me out on this?
    Thanks in Advance
    Regards

    I got a solution to this problem. This was a bug in the Standard SAP System. SAP corrected the code and that fixed the problem. The note created by SAP to resolve this is 1294017
    Regards
    Virender

  • Purchase Order to Confirmation Link in ODS 0BBP_CON

    Hi,
    I am trying to get a link between confirmation and PO in ODS 0BBP_CON. I am extracting Confirmation data from EBP (Extended Classic) and corresponding data for PO from R3 through 2LIS_02_HDR, 2LIS_02_ITM, 2LIS_02_SCL. After loading data into 0BBP_CON ODS I noticed that Confirmation Number and PO number appear in seperate rows instead of one. The KF's match but Confirmation Number and PO number are not appearing in a single row which is leading to report inconsistencies.
    Example of data records in ODS.
    (Conf No)-(PO No)-(COnf Qnty)---(Conf Val)
      4000123---  -    ---   2       ---   100
      -      -3500123-   2       ---   100
    Did anyone face the same issue before? or is it just the way the extractor behaves. Any input is highly appreciated.
    Thanks in advance,
    Pavan

    Hi Pavan,
    I'm not quite sure I got what the systems behaviour is. The 0BBP_CON ODS in standard should have Confirmation data only, no PO data (PO data is just a reference of the Confirmation document).
    So you're saying your 2nd entry doesn't have any confirmation info in it at all? What's the key of that record? Are you only populating 0BBP_CON from EBP?

  • Purchase order function module

    the CHANGEDOCUMENT_READ_POSITIONS is capturing the changes in the line item level but if there is any change in the PO inforecord text level then it is not caputring .................
    Please suggest what action need to be taken so that it caputres the info record text level change also

    Hi,
    function module "CHANGEDOCUMENT_READ" will give list of all change logs related to object key (for which the change logging is activated).
    Regards
    Vinod

  • Purchase Orders without Confirmations from the Vendor

    Hi ,
    I want to know which PO and items have no confirmations ( acknowledgments from vendor ) .
    How can I do this ?
    Thank you in advance.
    Best Regards.

    Hello
    I want to have a list displaying all the PO and their items which have no confirmations from the vendor(s).
    I tried with ME2L but it displays only PO with confirmations.
    Thank you in advance for your help.
    Best Regards.

  • How to Enchance Search Purchase Order function in MIGO

    Hello guys,
    In MIGO transaction there is a Search functionality of PO is available. But it has limited fields. Is there a way we can add more fields in this search criterion?
    Thanks
    Abhijit

    Transaction Code - MIGO                     Goods Movement
    Exit Name Description
    MBCF0002 Customer function exit: Segment text in material do
    MBCF0005 Material document item for goods receipt/issue slip
    MBCF0006 Customer function for WBS element
    MBCF0007 Customer function exit: Updating a reservation
    MBCF0009 Filling the storage location field
    MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_
    MBCF0011 Read from RESB and RKPF for print list in MB26
    MB_CF001 Customer Function Exit in the Case of Updating a Ma
    No of Exits: 8
    BAPI-step by step procedure
    http://www.sapgenie.com/abap/bapi/example.htm
    list of all BAPI's
    http://www.planetsap.com/LIST_ALL_BAPIs.htm
    Rewards if useful.................
    Minal

  • How to disable Purchase Order Print Preview function in the Portal

    We wish to expose some purchase order functions in our SAP Portal 7.0. The problem is that when we run any of the purchase order transactions as SAPGUI for HTML, the Print Preview function displays the full purchase order. This means that any user who wishes to short cut processes can display and then print a purchase order before it has been approved if they use the Portal to display the purchase order.
    If the purchase order transaction is run from the normal SAPGUI, the Print Preview function only displays the top of the purchase order and the print function is disabled. Has anyone tackled this problem before and worked out a way of stopping users from using the Print Preview function to display purchase orders in the Portal and then print them?
    Regards,
    Tom Maggs

    hi,
    DATA: w_compop    TYPE ssfcompop.
    w_compop-tdimmed   = ' '.     "Print Immediately control parameter should be empty..
    Then only print preview pop-up will come..
    then call your smartform like this..
    CALL FUNCTION fnam
        EXPORTING
          control_parameters = w_ctrlop
          output_options     = w_compop
              TABLES
          it_vbdkr           = it_tvbdkr[]
          it_vbdpr           = tvbdpr[]
          it_zglentitycode   = it_zglentitycode[].
    regards
    vijay

  • Fields for Payment against Purchase Order

    Hi Everyone,
    Kindly guide me what are fields where the payment amount against any purchase order gets stored.
    Please also guide me about the transaction code information where we can see the Payment against any Purchase Order (Functional Screen).
    Thanks and Regards

    Hi,
    I'm not sure whether the "payment fields" you mentioned are payment key/Discount Days/Cash Discount Percentage 1? If yes, you can check them in table EKKO.
    There's no payment amount in purchase order, you will need to check payment amount in
    corresponding invoice documents.
    Thanks and regards,
    Polly

Maybe you are looking for

  • Business area problem

    Sir in tcode VA01 i am getting following error :- No business area can be determined for item 000010 Messagae no. V1599 Diagnosis The system could not determine a business area for item 000010. The item has plant AMBA and is assigned to company code

  • Problem with ipod not turning on

    well heres the thing.... i dropped my ipod a few months ago then i tried to turn it on using reset etc. and all that other stuff you gotta do to try and get it to work, including waiting 24 hours and then resetting also connecting to other computers,

  • I need to take elements from within 2 nested for loops and place them in an array at the specific row and column that I need.

    I have tried intializing an array and replacing elements by specifying a particular row, and column, but in the end I get an array with only one element replaced, and I suspect that it is because as the for loops are running through their iterations

  • Enlarging root filesystem of the VM Server

    Hey everyone, I have a Oracle VM environment up and running in test: 2 servers in a server pool with 5 virtual machines. Now I want to add a nbew Virtual disk of 100 Gb to I virtual machine, but I get the error that 31 Gb is the max size I can alloca

  • Weird dos-like screen when I start up.....

    So, my comp. was being slow and just not seeming up to par, so i decided to shut down and then restart in the morning.... well, when i restarted i got the gray screen with the apple and then a black screen with dos-like (don't technically know what t