Vendor confirmation issue - fk08

dear expert,
user want -
whenever a new vendor is created or changes in a existing vendor, there should not be any kind of mannual or automatic posting without confirm the vendor through fk08.
any standerd configuration or user exit available ???
Subodh

Hi Subodh
As it's duel control proposes. Means one users can create or make a change in users but his seniors will approve that confirmation. Till then he is not able to work with that particular vendor.
Seniors users would able to see which field were changed, in change log.
This is Client level settings, so it will influence the all organization in that client.
better you confirm your vendor with other users. (supper user).
Regards
Sandip

Similar Messages

  • Vendor Confirmation using FK08 / FK09

    Hi Gurus,
    There is an existing Vendor for a particular company code / Purchase organization.
    User-1 extended it for new company code.
    Now another user-2 is trying to confirm the Vendor Master.
    While user-2 is trying to confirm the Vendor through
    Transaction code FK09 - The vendor is not listed
    Where as in Transaction code FK08 - The vendor is listed and allowing to confirm "Comapny code confirmation".
    Both transactions FK08/FK09 is attached to same role with authorization of that particular company code and assigned to that user-2. I do not find any problem with authorization.
    Could any one give reason, why it is not listed in FK09?
    Thanks & Best Regards,
    Mohan

    Hi,
    If the correct flags are being set in FK09 and the details are still not being included then it could be because the extension to the new company code has not changed any fields that are flagged as critical.
    What flag settings on FK09 have been used?
    the "accounts to be confirmed by me" flag is used as follows (according to the SAP filed help)
    <b>Display only accounts to be confirmed by me
    Only those accounts are displayed for which you have authorization to confirm changes. As a result of dual control, the system also checks whether you were involved in the sensitive changes.</b>
    The last bit means that you cannot authorise any chnages thet YOU made to any sensitive fields.
    Steve B

  • Vendor Confirmation fk08

    Hi,
           I am creating some new vendors, but everytime i create them or make some changes in them, then someone else has to confirm the changes by using TCODE FK08  before i can use the vendor in system. I just want to know that, is there any other way so that i can confirm the changes by myself. any report, any programme or any tables which i can use.
    Thanks

    The feature of vendor confirmation is given by SAP to avoid creation of incorrect and unauthorised vendors. which is why there is a maker and cheker rule for vendor master.
    Seems that you dont need this dual check functionality. Go to IMG menu
    FI - AP/AR - vendor account - master data - preparations for creation of master data - define sensitive fields for dual control.
    and remove the fields from here. After this you will not be asked to confirm the vendor
    Regds
    Pooja

  • Vendor Confirmation workflow ( TS00008075 ) issue for IDOCs in Error ( 51 )

    Hi All,
              When IDOCs (Basic type: ORDERS02, Message type : ORDRSP ) goes in error with status 51 & comes to SAP system it calls event  u2018INPUTERROROCCURREDu2019  which is correct but it creates problem when it get re processed as it triggers event u2018INPUTSUCCESSu2019 resulting in firing vendor confirmation workflows to respective user ( this batch job re process each ORDRSP IDOC twice a day & hence 2 workflows per IDOC in error to clientu2019s inbox by triggering event u2018INPUTSUCCESSu2019).
    Could you please tell me why these IDOCs are triggering event u2018INPUTSUCCESSu2019 in case of error ( status 51 ) when they get RE PROCESSED. These kind of Idocs must only trigger u2018INPUTERROROCCURREDu2019  once  and should not create anything when these get reprocessed. Please note that these issues arise after EHP4 upgrade. Please let me know if any setting is there for triggering Vendor COnfirmation workflow ( TS00008075 ) when IDOCs in error get re processed.
    Please help us , thanks.
    Regards,
    Kartikey Rawat.

    Hello Kartikey Rawat !
                        INPUTSUCCESS  event gets fired just because it is configured as terminating event in the task.
                        If you don't want this event to get fired, either you can deactivate it  or delete the bindings related to the event  INPUTSUCCESS(doing so should not affect other two terminating events that may be required for you scenario) .
                        If you want know why it is fired, you can get to know in debug mode or check whether the event is defined through  related function modules configured in WE57,BD51,WE42 AND WE20 transaction codes.
                        In WE05 or WE02 transactions, you will get error description.Based on it too, you can figure out the reason.
    Regards,
    S.Suresh

  • ALE Vendor Confirmation (CREMAS)

    Hi,
    When a Vendor is created FK01 the ALE is settings done to send the Vendor code to another SAP system. But now it will be Unconfirmed in both the systems.
    (LFA1-CONFS and LFB1-CONFS will be '1')
    When the Confirmation is done using a different User in Sending system using FK08, this data is not ALED to the Receiving system. So we had to do Confirmation seperately in both the systems.
    As the IDOC type for CREMAS does not have a segment field for LFA1-CONFS and LFB1-CONFS (Confirmation status) we can create an Extension IDOC segment and send it.
    But I find that the standard ALE Inbound Function module IDOC_INPUT_CREDITOR does not have an option of Confirming.
    Its does only a XK01 or XK02 but not a FK08.
    Cause a confirmation can only be done using XK08 and that too with not with the user who had created the Vendor.
    Please mail me if any of you have done an ALE Automatic Vendor confirmation in the Receiving system.
    Thanks & Regards,
    Midhun.

    Hi,
    Check this Link for Create an Extension Type and a New Segment.
    http://www.intelligententerprise.com/channels/applications/feature/archive/kasturi.jhtml
    Regards
    Appana

  • Vendor confirmation tab update using idoc ORDERS02

    Hi all,
    This is the first time i am working on idocs.
    I have a requirement where i have to update the vendor confirmation tab in ME22n(Purchase order), I am using IDOC type ORDERS02. and i am using segment E1EDP20 to update quantity,date and reference no. This is working fine.
    Now i need to update 2 more fields in the tab i.e confirmation category(EKES-EBTYP) and Date category of delivery date in vendor confirmation(EKES-LPEIN).But i dint find these fields in segment E1EDP20.
    My question is whether these 2 fields are available in any other segment?
    or should i extend the segment  E1EDP20 ?is it the correct segment to be extended...
    Please provide the inputs....<removed by moderator>
    Regards,
    Greeshma.
    Edited by: Thomas Zloch on Feb 22, 2012

    Hi,
    I have a questions for you and that will help me provide better solution .
    a) Is vendor providing you the Confirmation category or are you expecting to get this information from Vendor ?
    There are many points at which this information can be entered in ME22N.
    1. When the Vendor Acknowledege your PO(If the Acknowledgment required is selected) .
    2. When the Vendor request a change in schedule due to his own priorities .
    3. When the Vendor actually does a goods issue and you are ready to do a Goods receipt.
    In all these cases you update the system with confirmation category .In most cases this is the last phase of PO processing where you do the goods receipt and simultaneoulsy update the confirmation category. You are geting the quantity and the date updated from your schedule lines currently and since Schedules lines does not contain the confirmation category you are not getting it in E1EDP20.Confirmation category in most business scenarios is a mere stastical data rather than concrete data like schedule lines.
    Depending on 1/2/3 you should be approching the solution. 1.If you want to update the confirmation category during the Order acknowledgment Use BAPI_PO_CHANGE and call it from the PI or middleware  or(3) if during the Goods receipt then call the Exit of MIGO to get the PO populated if not exit then write a custom program to see all the Goods receipt and update the PO confirmation category accordingly (Remember this is a statstical data ). Although i highly doubt that the confirmation category will be provided by vendor it is the Buyer who will be determining it and that is why it is not there in the Standard Idoc.I shall not prefer the IDOC extension.
    You can have a discussion with your Functional/Customer to figure out the best approcah. Word of Caution : Analyze before you extend an Idoc .
    Thanks,
    Anjaneya .
    Edited by: Anjaneya Bhardwaj on Feb 24, 2012 7:33 AM

  • Vendor Confirmation on a PO in creation mode.

    Hi ,
    We have a requirement in our project such that we need to put the vendor confirmation on a PO in the creation mode of PO ( ME21N / ME59 ).
    Is it possible in standard SAP ?
    As per my analysis , the Confirmation can come on a PO only after it has been created. 
    Please advise if this is possible.
    Also which Exit should be used to create the confirmation on PO.( such that the respective account assigned sales order is also updated after the confirmation on PO ).
    Thanks,
    Purva

    resolved issue myself

  • Vendor confirmation process

    Hello guys,
    I realized that when we do a Vendor confirmation using Tcode FK08, all changes to the sensitive fields are displayed and those have to be confirmed. However, the Bank data like the Bank key, Swift Code etc do not appear in that list. Is there any way that the bank data can also be made as a sensitive field and thus if any changes are made to these fields it is flagged up for confirmation.
    Thanks for your suggestions
    Keyur

    IMG ==> Financial Accounting ==> Accounts Receivables and Payables ==> Vendor Accounts ==> Master Data ==> Preparations for Creating Vendor Master Data ==> Define Sensitive Fields for Dual Control (Vendors)
    LFBK-BANKL           Bank Key       
    LFBK-BANKN           Bank Account   
    You can add these and they will become sensitive fields.
    If you make any changes to these field, then the other user (supervisor) needs to approve them.
    Regards,
    Ravi

  • ALE Vendor Confirmation

    Hi,
    When a Vendor is created FK01 the ALE is settings done to send the Vendor code to another SAP system. But now it will be Unconfirmed in both the systems.
    When the Confirmation is done using a different User in Sending system using FK08, this data is not ALED to the Receiving system. So we had to do Confirmation seperately in both the systems.
    As the IDOC type for CREMAS does not have a segment field for LFA1-CONFS and LFB1-CONFS (Confirmation status) we can create an Extension IDOC segment and send it.
    But I find that the standard ALE Inbound Function module IDOC_INPUT_CREDITOR does not have an option of Confirming.
    Its does only a XK01 or XK02 but not a FK08.
    Please mail me if any of you have done an ALE Automatic Vendor confirmation in the Receiving system.
    Thanks & Regards,
    Midhun.

    Hi,
    Check this Link for Create an Extension Type and a New Segment.
    http://www.intelligententerprise.com/channels/applications/feature/archive/kasturi.jhtml
    Regards
    Appana

  • PO Confirmation Issues.

    Hello Experts,
    I am having some difficulty updating the Purchase Order Confirmations Tab of the PO.
    Right now, I am using ME_CONFIRMATION_UPDATE  to take date that is being received through an inbound IDOC formatting it, then calling the above Function Module. The Purchase Order is updating correctly but the Stock/Requirements list is NOT.  In MD04 if I manually update the PO and Save, the Shipping Notification line replaces the POItem line. When the Function Module runs, It Adds  the Shipping Notification line in addition to the POItem line.  From what I have read, it is probably due to this FM being a direct insert into the table, and I would need a PO Save feature to properly update the PO, and by doing so the Stock requirements list.
    Playing around I have tried to create a BDC with little success. I'd rather not use a BDC.
    I have done some reading about using BAPI_PO_CHANGE, and from some of the posts I read, It seems to (At least from time to time) have the same issue.
    If anyone can provide some direction and assistance, it would be greatly appreciated.
    Regards,
    Christopher

    Hello to all,
    that is just for documentation. SAP answerd the problem in OSS-304243 but this message is not accessable if you don't have powerful OSS-Users.
    This SAP-note might be interesting: 197958
    OSS-Message 652796 8.8.2011
    BAPI_PO_CHANGE
    We can not process confirmations by using the parameter poconfirmation.
    The Baps reports always S 06 022 - no data changed.
    In the SDN there are some hints telling that the BAPI_PO_CHANGE does notsupport processing of confirmations. More detailled infos should be in
    the OSS-Message 0000304243 but this message is not accessable for us.
    Can you confirm that the BAPI_PO_CHANGE does not support adding
    confirmations? We debugged the BAPI and there is no code for updating
    confirmations found.
    Best regards
    Bernhard Lascy
    09.08.2011 - 10:43:07 CET - Antwort von SAP
    Dear Bernhard,
    I regret to inform you that the functionality you request is not
    implemented in the R/3 standard system.
    Unfortunately it is not possible to change/load confirmations with the
    function module BAPI_PO_CREATE/BAPI_PO_CHANGE. Table POCONFIRMATION in
    BAPI interface is relevant for Display/List Vendor Confirmation in BAPI,not for update/insert Vendor confirmation in PO.
    Furthermore, we recommends that you use Idocs for automatically
    entering confirmations. The Message type to use is ORDRSP.
    You may read more about this topic in the online documentation.
    Please see also following attached note for your reference.
    456127 FAQ: Electronic Data Interchange (EDI) in purchasing
    Best regards,
    Pavel Olysar
    Support Consultant
    Global Support - Logistics

  • Generating Inbound delivery based on Vendor Confirmation for Purchase order

    Is there a way to create Inbound deliveries based on Vendor confirmation for a purchase order.
    Here is the complete scenario.
    Buyer Creates the PO for qty 100 and Date August 29
    Vendor Confirms that he can supply a qty of 50 for August 29 and remaining 50 for Sep15th
    Based on vendor confirmation, Buyer creates 2 vendor confirmations (AB) to match with the data received from Buyer, without modifing the PO.
    Requirement:
    Inbound deliveries should get created based on the vendor confirmation.
    As MRP looks at Inbound delivery for Planning purposes once they are available, Inbound delivery should match with vendor confirmation data.
    Is it possible to get this requirement met with standard config available in SAP.

    could you eventually get the answer from the docu Set Up Confirmation Control

  • BDC for ME22n vendor confirmation

    i am facing problem while doing BDC for ME22N . i am going for itemwise vendor confirmation.
    for first line item it is happening. but for 2nd line item it is not going.
    any help?
    this is my code. i guess some loop i have to add but where? can any body give idea?
    REPORT  ZMM_VC_UPLOAD.
    TABLES :  t100.
           Internal table declaration                                    *
    DATA : BEGIN OF it_upload OCCURS 0,
                  index(4),      "Index
                  EBELN(10),     "PO number
                 EBELP(5),      "line item PO
                  LIST(1),       "item number
                  BSTAE(4),      "Confirmation control key
                  EBTYP(2),      "Confirmation Category
                 BSTAE(4),      "Confirmation control key
                  LPEIN(1),      "Category of delivery date
                  EEIND(10),     "delivery date
                  MENGE(13),     "QTY Quantity as per vendor confirmation
                  XBLNR(20),     "ext doc
                  ERDAT(10),     "doc date
                  er_message(100),
           END OF it_upload.
    DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE,
          MSGDATA LIKE BDCMSGCOLL  OCCURS 0 WITH HEADER LINE.
    *Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETER: P_FILE LIKE IBIPPARMS-PATH OBLIGATORY.  "to select a file.
    SELECTION-SCREEN END OF BLOCK B1.
    *Initialization
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE .
      PERFORM GET_FILENAME.
    start-of-selection
    START-OF-SELECTION.
      PERFORM MAKE_FILE_NAME .
      PERFORM UPLOAD_FILE.
        PERFORM BDC_PROCESS.
    perform read_messages.
    *&      Form  UPLOAD_FILE
    FORM UPLOAD_FILE .
      CALL FUNCTION 'WS_UPLOAD'
        EXPORTING
          FILENAME                = P_FILE
          FILETYPE                = 'DAT'
        TABLES
          DATA_TAB                = IT_UPLOAD .
            IF SY-SUBRC <> 0.
      ENDIF.
    ENDFORM.                    " UPLOAD_FILE
    *&      Form  bdc_process
    FORM BDC_PROCESS .
    loop at it_upload.
    LOOP AT IT_header.
    refresh bdcdata.
      perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MECHOB'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    perform bdc_field       using 'DYN_6000-LIST'
                                  it_upload-list.    "'   1'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1319-MATKL'.
    perform bdc_field       using 'MEPO1319-SPINF'
                                  'X'.
    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'
                                  it_upload-EBELN.              "'4500195517'.
    perform bdc_field       using 'MEPO_SELECT-BSTYP_F'
                                  'X'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=TABIDT14'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO_TOPLINE-BSART'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    perform bdc_field       using 'DYN_6000-LIST'
                                  it_upload-list.    "'   1'.
    perform bdc_field       using 'MEPO1319-SPINF'
                                  'X'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'             "first time
                                  '/00'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    perform bdc_field       using 'DYN_6000-LIST'
                                 it_upload-list.    " '   1'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'MEPO1334-BSTAE'.
    perform bdc_field       using 'MEPO1334-BSTAE'
                                  it_upload-BSTAE  .                "'0005'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '/00'.
    perform bdc_field       using 'MEPO_TOPLINE-BSART'
                                  'NB'.
    *loop at it_item where ebeln = it_upload-ebeln.
    perform bdc_field       using 'BDC_CURSOR'
                                  'DYN_6000-LIST'.
    perform bdc_field       using 'DYN_6000-LIST'
                                  it_upload-list.    "'   1'.
    perform bdc_field       using 'MEPO1334-BSTAE'
                                  it_upload-BSTAE.                 "'0005'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'EKES-ERDAT(01)'.
    perform bdc_field       using 'EKES-EBTYP(01)'
                                  it_upload-EBTYP.                 "'vc'.
    perform bdc_field       using 'RM06E-LPEIN(01)'
                                  it_upload-LPEIN.                 "'D'.
    perform bdc_field       using 'RM06E-EEIND(01)'
                                  it_upload-EEIND.                 "'15.02.2009'.
    perform bdc_field       using 'EKES-MENGE(01)'
                                  it_upload-MENGE.                 "'10'.
    perform bdc_field       using 'EKES-XBLNR(01)'
                                  it_upload-XBLNR.                 "'inv 9'.
    perform bdc_field       using 'EKES-ERDAT(01)'
                                  it_upload-ERDAT.                 "'15.02.2009'.
    perform bdc_dynpro      using 'SAPLMEGUI' '0014'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=MESAVE'.
    CALL TRANSACTION 'ME22N' USING BDCDATA MODE 'A' UPDATE 'A' MESSAGES INTO MSGDATA. 
        CLEAR: BDCDATA,BDCDATA[].
        refresh BDCDATA.
      ENDLOOP.
    ENDFORM.                    " bdc_process
           Start new screen                                              *
    FORM BDC_DYNPRO USING PROGRAM DYNPRO.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = PROGRAM.
      BDCDATA-DYNPRO   = DYNPRO.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
    ENDFORM.                    "BDC_DYNPRO
           Insert field                                                  *
    FORM BDC_FIELD USING FNAM FVAL.
      IF FVAL <> ''.
        CLEAR BDCDATA.
        BDCDATA-FNAM = FNAM.
        BDCDATA-FVAL = FVAL.
        APPEND BDCDATA.
      ENDIF.
    ENDFORM.                    "BDC_FIELD
    *To get file name                                                      *
    FORM GET_FILENAME .
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          PROGRAM_NAME  = SYST-CPROG
          DYNPRO_NUMBER = SYST-DYNNR
        IMPORTING
          FILE_NAME     = P_FILE.
      IF SY-SUBRC NE 0  .
        WRITE : / 'Enter File Name'.
      ENDIF.
    ENDFORM.                    "GET_FILENAME

    Hi Dude,
      When ur looping the item information , in your code ur
    loop at it_item where ebeln = it_upload-ebeln.
    perform bdc_field using 'BDC_CURSOR'
    'DYN_6000-LIST'.
    perform bdc_field using 'DYN_6000-LIST'
    it_upload-list. "' 1'.
    perform bdc_field using 'MEPO1334-BSTAE'
    it_upload-BSTAE. "'0005'.
    perform bdc_field using 'BDC_CURSOR'
    'EKES-ERDAT(01)'.
    perform bdc_field using 'EKES-EBTYP(01)'
    it_upload-EBTYP. "'vc'.
    perform bdc_field using 'RM06E-LPEIN(01)'
    it_upload-LPEIN. "'D'.
    perform bdc_field using 'RM06E-EEIND(01)'
    it_upload-EEIND. "'15.02.2009'.
    perform bdc_field using 'EKES-MENGE(01)'
    it_upload-MENGE. "'10'.
    perform bdc_field using 'EKES-XBLNR(01)'
    it_upload-XBLNR. "'inv 9'.
    perform bdc_field using 'EKES-ERDAT(01)'
    it_upload-ERDAT. "'15.02.2009'.
    perform bdc_dynpro using 'SAPLMEGUI' '0014'.
    perform bdc_field using 'BDC_OKCODE'
    '=MESAVE'.
    ->(01) you have to replace to variable , and every loop pass increment the varialbe value with 1.
    ex : -
    V1 = 1.
    loop at item.
    perform bdc_data using 'xyz(V1)' 
                                   it_upload-variable.
    V1 = V1 + 1.
    endloop.
    This is called as index , the table control fields are differ the field name by index only...

  • Updating Vendor Confirmations in PO

    Hi Friends,
    I am trying to update Vendor Confirmations(TABLE EKES) in PO using FM ME_CONFIRMATION_UPDATE.  Even checking for EKPO-BSTAE.
    But i could not able to update EKES table, its throwing an error 'SYSEM ERROR:ERROR DURING UPDATING TABLE EKES'.
    Any suggestions please
    Regards,
    Sunil
    Message was edited by:
            sunilkumar sankineni

    I'm also trying to update the EKES table using the same function module, but not able to update. Did your problem get solved. Can you give me the code, on how to update the EKES table.
    Message was edited by:
            P K Ch

  • 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

  • Vendor confirmations in purchase order

    Hi friends,
    Iam using the fucntion module ME_CONFIRMATION_UPDATE to update the vendor confirmations table ie : EKES table
    Now iam able to succesfully update and insert new record in this table using the above function module.
    Now when i go to ME23N and give purhcase order number and at the item level in the confirmations tab i should see the updated entries of EKES table . but iam not able to see it..
    when i manually add a new line in the confirmations tab then i can see that entry in the EKES table.. how can i get the reverse process ie : when i add an entry in EKES table using the above function module it should reflect in the confirmation tab at the item level in ME22N.
    How can i do it.
    Regards
    Kumar

    Well, not much more I can say. This is the code I uam using for my specific case, hope that gives you some ideas for your case:
    lstr_item-acknowl_no = p_cnftxt.
      lstr_item-conf_ctrl = '0001'.
      lstr_itemx-acknowl_no = 'X'.
      lstr_itemx-conf_ctrl = 'X'.
      LOOP AT gtab_xekes_tmp INTO gstr_xekes_tmp.
        IF gstr_xekes-ebelp NE lv_ebelp AND sy-tabix > 1.
          lstr_item-po_item = gstr_xekes_tmp-ebelp.
          APPEND lstr_item TO ltab_item.
          lstr_itemx-po_item = gstr_xekes_tmp-ebelp.
          APPEND lstr_itemx TO ltab_itemx.
        ENDIF.
        lv_ebelp = gstr_xekes_tmp-ebelp.
      ENDLOOP.
      lstr_item-po_item = gstr_xekes_tmp-ebelp.
      APPEND lstr_item TO ltab_item.
      lstr_itemx-po_item = gstr_xekes_tmp-ebelp.
      APPEND lstr_itemx TO ltab_itemx.
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          purchaseorder = p_ebeln
        TABLES
          return        = ltab_bapiret
          poitem        = ltab_item
          poitemx       = ltab_itemx.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    /Leif

Maybe you are looking for

  • Display image in JFrame

    I am looking for a way to display an image in a jframe. I want to avoid wrapping it into a container..such as a JPanel, JLabel..ect. Does anyone know a way? I seen in the API there is a Graphics function drawImage but I can not get it to work, and tr

  • How can I print ,my e-mail addresses?

    How can I print the list of my e-mail addresses?

  • After updating my iPad1 to v4.3.2 airplay is not an option

    After upgrading my iPad to version 4.3.2 i no longer have the airshare icon in the video screen (or any other supported app), this option was present before the upgrade.  My iPad2 also running 4.3.2 can still stream to my AppleTV. Is there a known is

  • Not able to install GTK+-2.12.0 in Solaris 9: Pango link Error

    Hi I am trying to install GTK+-2.12.0 in my solaris 9 machine from last couple of days but while doing ./configure its throwing error with Pango: checking Pango flags... -I/usr/local/include/pango-1.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/gl

  • Dashcode - webform - back

    I am writing a mulit-level list where I have 3 different lists I want to Traverse. After playing around with Stack-Layout for a while I realized that to navigate the 12 layers of the 3 different lists I would need to create 12 views. So I abandonded