COND_A01 IDOC

Hello,
I am trying to Load pricing conditions into VB23 using the IDOC COND_A01. It is working fine when I try to create a new record but when I tried to modify the dates on an existing record it is creating an additional entry in table Axxx, which is resulting in an error(Internal error: T IVAKE F IVAKE_INSERT I MV130F0I) when I go back into vb23.
How do I prevent the IDOC from creating the additional record? I tried to pass the KNUMH  but still creates a new record.
Any help highly appreciated.
Regards
Manik

Ferry,
I've tried to run the BAPI but nothing is happening. I've tried operation 004 and 005 and it is executing without any errors but data is not getting changed?  Is there any other place to map the 'matnr' other than vakey?  What am i missing? Here is my code.
REPORT  ztest2.
DATA: table1 TYPE TABLE OF bapicondct,
      wtable1 LIKE LINE OF table1,
      table2 TYPE TABLE OF bapicondhd,
      wtable2 LIKE LINE OF table2,
      table3 TYPE TABLE OF bapicondit,
      wtable3 LIKE LINE OF table3,
      table4 TYPE TABLE OF bapicondqs,
      wtable4 LIKE LINE OF table4,
      table5 TYPE TABLE OF bapicondvs,
      wtable5 LIKE LINE OF table5,
      table6 TYPE TABLE OF   bapiret2,
      ret LIKE LINE OF table6,
      table7 TYPE TABLE OF bapiknumhs,
      wtable7 LIKE LINE OF table7,
      table8 TYPE TABLE OF cnd_mem_initial,
      wtable8 LIKE LINE OF table8.
wtable1-table_no = '907'.
wtable1-applicatio = 'V'.
wtable1-cond_type = 'Z001'.
wtable1-operation = '005'.
wtable1-varkey = '0040000004US101000VTX001'.
wtable1-valid_to = '20071030'.
wtable1-valid_from = '20070301'.
wtable1-cond_no = '$000000001'.
APPEND wtable1 TO table1.
wtable2-operation = '005'.
wtable2-cond_no = '$000000001'.
wtable2-created_by = sy-uname.
wtable2-creat_date = '20070108'.
wtable2-cond_usage = 'A'.
wtable2-sales_deal = '0040000004'.
wtable2-table_no = '907'.
wtable2-applicatio = 'V'.
wtable2-cond_type = 'Z001'.
wtable2-varkey = '0040000004US101000VTX001'.
wtable2-valid_from = '20070301'.
wtable2-valid_to =  '20071030'.
APPEND wtable2 TO table2.
wtable3-operation = '005'.
wtable3-cond_no = '$000000001'.
wtable3-cond_count = '01'.
wtable3-applicatio = 'V'.
wtable3-cond_type = 'Z001'.
wtable3-scaletype = 'A'.
wtable3-scalebasin = 'C'.
wtable3-scale_qty = '1'.
wtable3-cond_p_unt = '1'.
wtable3-cond_unit = 'EA'.
wtable3-calctypcon = 'C'.
wtable3-cond_value = '250'.
wtable3-condcurr = 'USD'.
APPEND wtable3 TO table3.
CALL FUNCTION 'BAPI_PRICES_CONDITIONS'
EXPORTING
PI_initialmode = 'X'
PI_BLOCKNUMBER =
TABLES
ti_bapicondct = table1
ti_bapicondhd = table2
ti_bapicondit = table3
ti_bapicondqs = table4
ti_bapicondvs = table5
to_bapiret2 = table6
to_bapiknumhs = table7
to_mem_initial = table8
EXCEPTIONS
update_error = 1
OTHERS = 2
IF sy-subrc <> 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
READ TABLE table6 WITH KEY type = 'E' TRANSPORTING NO FIELDS.
IF sy-subrc = 0.
  LOOP AT table6 INTO ret.
    WRITE: / ret-type, ret-message, ret-id, ret-log_no, ret-log_msg_no,
    ret-message_v1, ret-message_v2, ret-message_v3, ret-message_v4,
    ret-parameter,ret-row,ret-field.
  ENDLOOP.
ELSE.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
*EXPORTING
WAIT =
  IMPORTING
  return = ret
ENDIF.

Similar Messages

  • IDOC type COND_A01

    Hello everybody,
    I'm not very familiar with IDOC technics. Could anybody help me with this problem?
    I have an application that sends condition data to XI. There it will be mapped to the IDOC structure of COND_A01 and transferred to an R/3.
    Is it also possible to reverse the data stream? I'd like to have MATNR as input and as result the appropriate COND_A01 IDOC data.
    Thanks for any help.
    Joschi

    Hi Joschi,
    Are you trying to generate COND_A01 IDoc (R/3) and sending to XI? If you are then ...
    You may need to ask SD Functional folk to create new pricing report (t/code V/LA) with sending IDoc, message type and logical system paramaters available for input.
    or you can copy an existing pricing report (t/code V/LD) into custom report/program and change below parameters to be displayed.
    PARAMETERS sen_idoc(1) TYPE c     *NO-DISPLAY.
    PARAMETERS p_mestyp  LIKE tbdme-mestyp  *NO-DISPLAY.
    PARAMETERS p_logsys  LIKE tbdls-logsys  *NO-DISPLAY.
    Once the report is available for you then the next step is to configure ALE and partner profile in order to generate IDoc COND_A01 from the pricing report.
    Hope this will help.
    Regards,
    Ferry Lianto
    Please reward points if helpful.

  • Cannot update PB00 with COND_A or INFREC

    I'm trying to update the pricing condition PB00, but COND_A is not getting it done.  The idoc posts successfully, but the price doesn't update.  Could there be required fields I'm not populating?  I've taken care of all the obvious ones.

    Hi Patrick,
    I have been trying to get the INFREC01 IDoc to change the PB00 condition also and have been running into the same problem.  In our system field KZNEP is set to "X" on the PB00 condition type.  Also the Change of Value field KAEND_WRT is checked.
    When the INFREC01 posts it successfully changes the net price and effective price but never updates condition PB00.  When I try to post a COND_A01 IDoc for PB00 associated witj the InfoRec I get error "VJ025 - Results of pricing with condition type PB00 can not be changed".
    You seemed to have figured this out.  What value do you set field KZNEP to?  I set it to <space> and it had no effect.
    Any help is appreciated.  If possible I want the INFREC01 to update PB00 when it posts.
    Thanks,
    Mark

  • Creating Conditions for Purchase Info Records using IDoc COND_A01

    Hi All,
    we are using IDOC COND_A01 to update and add conditions in ME12 transactions.
    But when we send a condition IDoc which contains 2 condition types (Segment KONP), the standard function call creates only one database entry in the table KONP. The entry in KONP is for  standard condition types PB00, but not  for company specific types (Say: ZABC) .But when we create them manually in ME12 maintaining an purchase info record  we get both the entries in the KONP database table.
    Has anyone come accross such a problem? Is there any special field in the IDoc COND_A01 which controls the creation of the condition types?
    Thanks for any answer!

    U should use basic type INFREC01 instead of NFRECMASS01.
    Within the FM there is a check for basic type like:
    check idoc type
        if f_idoc_control-idoctp <> c_idoctp_infrec01. " INFREC01
          raise wrong_function_called.
        endif.
    Edited by: Joyjit Ghosh on Sep 15, 2008 4:57 PM

  • Use of segment E1KONP in IDOC COND_A01

    We are today using the VARKEY field in segment E1KOMG in IDOC COND_A01 with all the fields in the spesified condition table for a condition type.
    Instead of generating X quantity of IDOC´s we would like to repeat the segment E1KONP with different customers. All the other fields in the condition table have the same values.
    The field customer is available in segment E1KONP.
    What can we do with the IDOC or other configuration to tell the IDOC using customer from segment E1KONP and not from field VARKEY in segment E1KOMG? We still need to use VARKEY for the other fields in the condition table, since we use som Z fields in our condition table.
    I am struggling findig documentation according to our problem.
    Best regards,
    Terje

    Hi Terje Pedersen,
    Did you get a solution to your problem?? I too am facing similar kind of problem. Instead of multiple IDOCS for COND_A01, I need to create only one.
    Please suggest.
    Thanks & Regards,
    Abhishek

  • LSMW with IDOC Message type COND_A and Basic type COND_A01

    Hi Sap All.
    in my project we using the LSMW with IDOC Message type COND_A and Basic type COND_A01 and now the requirement is to know the list of the tables which will be updated when i do the LSMW Migration with this IDOC Basic type.
    i have tried to know the list of the tables updated by entering into the transaction we30 and looking at the segments E1KOMG,E1KONH, E1KONP,E1KONM,E1KONW  and i found that the following below are the list of tables which gets updated when i populate the data into IDOC Message type COND_A and Basic type COND_A01.
    KOMG,KONH,KONP,KONM,KONW.
    please correct me if iam wrong.
    regards.
    Varma

    Hi Varma,
    The tables mentioned by you definitely get updated, i guess you can add KONV to the list too, but to be a 100% sure, enable SQL trace and process an IDOC. Then you can look for Insert/Modify/Update statements to get a list of the tables that get updated.
    Regards,
    Chen

  • IDOC BLAORD03 and COND_A01

    Hi Guys,
    I have to create a inbound/outbound scenario for contract creation through BLAORD03.
    i have to update multiple conditions as well to this contract , for this IDOC COND_A01 might help, but i am not getting how to use this IDOC , as Purchasing document field is mandatory field in this IDOC, and how can i get the purchasing document no in this case.
    any help will be appritiated.
    regards
    siddharth

    Hi,
    use the message type COND_A and the process code COND in the partner profile. You have a std FM "IDOC_INPUT_COND_A" linked to this process code which posts the documents and the purchasing document number will be sent by the other system.
    Thanks & regards

  • Generate IDoc COND_A01

    Hi all,
    I need to generate an Idoc with type COND_A01. Does anyone have some insight on how can I do this?
    Please note that I don't want to use WE19, because what I need to do is to get some "real" data from the system and check what values go into which fields.
    Thks

    Hi Bruno,
    Welcome to SDN.
    You may need to ask SD Functional folk to create new pricing report (t/code V/LA) with sending IDoc, message type and logical system paramaters available for input.
    or you can copy an existing pricing report (t/code V/LD) into custom report/program and change below parameters to be displayed.
    PARAMETERS sen_idoc(1) TYPE c *NO-DISPLAY.
    PARAMETERS p_mestyp  LIKE tbdme-mestyp  *NO-DISPLAY.
    PARAMETERS p_logsys  LIKE tbdls-logsys  *NO-DISPLAY.
    Once the report is available for you then the next step is to configure ALE and partner profile in order to generate IDoc COND_A01 from the pricing report.
    Hope this will help.
    Regards,
    Ferry Lianto

  • Error while trying to post inbound idoc of message type COND_A

    Hi,
    I am getting error while trying to post inbound idoc of message type COND_A.
    If I left Usage & Condition field of segment E1KOMG then 'Table not available' idoc message is coming
    and if providing value in above fields then dump is coming.
    How to solve ?
    Plz do reply
    Thanks
    Mohit

    I do not see any reason why you would need to use COND_A04  if COND_A01 is working.
    What if you could get COND_A04 to post and you would face the same result as in COND_A01?
    If SAP does not check wrong values, then you have to do it yourself, or you report an incident at SAP (after you have searched for OSS notes that may have fixed this error already)
    For example OSS Note 1169998 - IDoc: KONP-LIFNR values not checked
    fixed a situation where the vendor number was not validated.

  • Inboun idoc error in sap r/3  from PI

    Hi all,
    I am having problem in posting an idoc of type cond_A01, i am getting an error 51: Application document not posted, with a message: Table TA91 does not exist. When i checked for table TA91 it is not there, and when i checked A911 it is there. So i need to change, so that it checks for table A911 instead of TA91. when i am sending it from pi it was showing that A911 in mapping, but in r/3 is not updated. Can you please help me in this.
    1:) Where do i need to make changes?
    2:) Do i need to change in Process code( COND is the process code for cond_A01?) .
    3:) Is this a PI issue or ABAP issue.
    Thanks.

    Hi Gud poeple
    My Scenario is MDM to ECC
    I am facing the very similar error on my interfaces, I am creating to IDocs MATMAS and CLFMAS
    the status is 51 and the error is :
    -- Object 0008341 from table MARA has not yet been created. For this reason, no class allocations can be maintained for this object.
    When trying to process the CLFMAS IDoc for Materials
    What could be the problem.
    Thanks,
    Yonela

  • Idoc status 53.Yet application data is not posted.

    IDOC status is 53. But application data is not partially posted.iam generating 2 idocs, one for type INFREC01 and other for COND_A01. iam  Generating IDOC using a fm IDOC_INBOUND_ASYNCHRONOUS. purchase info record is posted succesfully. but condition info record is not posted.
    for both the idoc its shows green status-53. moreover data in EINA EINE KONH KONP is updating, but its not displayed in transaction ME13.
    Kindly help me.

    Hi,
    Check the config stuff if you are usng the right IDoc...See partner profiles and the message types.
    thanks

  • Bloard03 and cond_a01 relationship

    Hi All ,
    I have a scenerio where I need to create an inbound idoc for contarcts with refernce to Purchase requisition  that has conditions at line item level . So I need to use bloard03 and cond_a01 in combination . 
    please suggest how do we relate the two message type .
    Regards
    Chan

    Hi,
    use the message type COND_A and the process code COND in the partner profile. You have a std FM "IDOC_INPUT_COND_A" linked to this process code which posts the documents and the purchasing document number will be sent by the other system.
    Thanks & regards

  • Interface development using bloard03 and cond_a01

    Hi,
    I want to create an inbound idoc for purchasing contarcts has conditions at header level and line item level . So I need to use bloard03 and cond_a01 in combination .
    please suggest how do we relate the two message type  and guide me how to develop and interface for the same

    Hi,
    use the message type COND_A and the process code COND in the partner profile. You have a std FM "IDOC_INPUT_COND_A" linked to this process code which posts the documents and the purchasing document number will be sent by the other system.
    Thanks & regards

  • COND_A04 posting give dump for scale table TVFSCB while COND_A01 posts

    Hello Guys,
    We are uploading condition records in SAP from external system using IDOC. IDOC of basic type COND_A04 is proposed. But while posting the data using COND_A04, system gives a dump as below
    Error analysis
        Short text of error message:
        Error in READ TABLE G_TVFSCB_TAB (Key:    )
        Long text of error message:
        Technical information about the message:
        Message class....... "VYSC"
        Number.............. 002
        Variable 1.......... "READ TABLE"
        Variable 2.......... "G_TVFSCB_TAB"
    If we use the same data and use IDOC type COND_A01 the IDOC is posted successfully. I would like to know
    1. Is there any issue if we use COND_A01? What are the advantages of COND_A04?
    2. Why SAP is expecting values in TVFSCB? How can I find the reason?
    Thanks
    Vikas

    I feel, the issue relates to some shipment cost as the table TVFSCB relates to that.  Nevertheless, have a look at the following notes which may help you
    1)  Note 507828 - VI01/VI02: Program termination after price refresh
    2)  Note 578232 - VI01/VI02: VYSC806 Multiple cumulation without group cond.
    3)  Note 619945 - VI01: Runtime error VYSC 002 'READ g_vfkomv'
    4)  Note 675591 - Error when copying multi-dimensional freight conditions
    thanks
    G. Lakshmipathi

  • Idoc in error while trying to post vendor invoice(higher items not allowed)

    Hi All,
    we have two SAP systems. SAP A and SAP B.
    SAP A is the vendor for SAP B system we have created a sales order/delivery/out bound invoice in SAP A system.The sales order has BOM material with main item and sub items. We have the same material master data and BOM master data in system A and system B since we are following split architecture.
    The outbound invoice(with main and sub item) in system A has generated  an outbound idoc and the idoc has gone to SAP
    system B. There are the usual segments like E1EDP01 for  main item and another E1EDp01 for the sub itmes in the outbound
    idoc.The message type is INVOIC and basic type INVOIC02 with no extension.
    In system B,  the inbound idoc (coming from system A) has failed giving the error message "higher level items not allowed". The
    segment E1EDP01 for sub item is highlighted in red ! basically the inbound idoc in sap system B is posting a vendor
    invoice since the inbound idoc in B is calling the FM  IDOC_INPUT_INVOIC_MRM... I think this is doing vendor invoice
    verification.
    I have checked in system A, all is ok and the outbound idoc is ok but the issue is in sap system B, the inbound idoc has failed
    with message  "higher level items not allowed". The segment E1EDP01 for sub item is highlighted in red in inbound idoc in
    system B. The segments are the same for inbound idoc in B and outbound idoc in A.
    Can someone pls tell what is wrong in system B.(config or data issue) as we are managing both systems.
    regds
    Edited by: sapsd73 on Jul 9, 2010 3:26 PM
    Edited by: sapsd73 on Jul 9, 2010 3:27 PM

    I do not see any reason why you would need to use COND_A04  if COND_A01 is working.
    What if you could get COND_A04 to post and you would face the same result as in COND_A01?
    If SAP does not check wrong values, then you have to do it yourself, or you report an incident at SAP (after you have searched for OSS notes that may have fixed this error already)
    For example OSS Note 1169998 - IDoc: KONP-LIFNR values not checked
    fixed a situation where the vendor number was not validated.

Maybe you are looking for

  • How do I get my toolbar on my computer

    How do I install my toolbar on Mozilla Firefox browser. I need to get to the tools and all the rest on the toolbar Thank you Firefox has chrashed several times.What causes that

  • Reg serial number generation at the time of GR-(MB31)

    Dear all, can we create a customized serial number  at the time of goods receipt (MB31)like ex: S0900001  where in S stands for plant number , 09 stands for the year and 00001 is running serial number please give the required steps to get the customi

  • Date field manipulation

    How to add 5 months to date field. For ex: To find out the date after 5 months from today.

  • Object range number not exist in production

    Hi guys, I have a problem where I had created an object range number in development server. The object works fine in development server. However , when I transported the object to the production server, the object did not exist eventhough the transpo

  • Operation Scrap Process

    Dear Gurus, We have MTO scenario. I have a production order with order quantity = 2. We have two operations, op1 and op2. First quantity is confirmed in op1 while the other quantity is declared as scrap. The required components to produce the FG are