Required BAPI for CK74N Transaction - Creating Additive Costs

Hi Experts, Good Day.
My functional guy has given a requirement to create BDC for transaction CK74N. But as it is an 'Enjoy' Transaction I thought to opt BAPI instead of BDC. But in the forum I did not find exact BAPI for this and also found some suggestions to develop BDC for old transaction CK74.
So, as of now I have return BDC for CK74. Here also I have a doubt. When I am executing BDC with 'N' - No-Screen mode I am getting an error like "No batch data found for this field" for some materials. This message is raised only those materials for which Costs has not maintained even for once. In this case at one screen the BDC_CURSUR is showing in some other field instead of Pricing field. So, I am getting error. But same BDC is fine with materials for those Costs has been maintained at-least one time.
So, I hope with BAPI I can overwrite this error. Can anyone please let me know a BAPI for creating Additive Costs (CK74N).
Regards,
Vijay

Vijay
If you will pass data to above mentioned function module the SAP standard code will make sure BDC is coded in correct way. Please try to use it..Else you will have to determine via code in your BDC whether its first time or not..if first time means a new subscreen will come.
Nabheet

Similar Messages

  • Required BAPI for Shipment Cost Document (VI01)

    Dear All,
       I required BAPI for Shipment Cost Document (VI01), pls help on this.
    Regards
    Ranjit

    Dear MM
      Thanx for replying, but the BAPI which you have provided will only show me the Cost with correct Tax calculation,
    But its not getting created, which system should show the Shipment Cost Document number.
    Regards
    Ranjit

  • Require BAPI for creating outgoing Invoice (Accounts Payable).

    Hi Friends,
       As per our requirement, we need to create an outgoing Invoice (ie., Accounts payable). Is there any BAPI available to create outgoing invoice?
    Thanks in advance,
    Sai.

    BAPI_ACC_DOCUMENT_POST try with this.
    see for sample code in this thread : What is exact BAPI for FB01 transaction......
    Reward points if useful
    Madhavi

  • When i use function module to create additive costs using KKPI_BDC_ADD_ON_C

    Hi,
    When i use function module KKPI_BDC_ADD_ON_COSTS_CREATE to create additive costs it shows an error. The error is 'THE OBJECT IS LOCKED BY THE USER SARKARD'  the transaction it uses is CK74 for creating.
    I have also read about KKP4_ADD_ON_COSTS_CREATE. But i dont know the usage of it.. 
    I think it will be helpful if u can clarify with first FM.
    Kindly suggest.
    Thank you.
    Harsha

    Hi Harsha,
    I have a similar requirement, but the issue that I am facing is that I can not find any parameter in the FM - KKPI_BDC_ADD_ON_COSTS_CREATE for Valuation Date which is a mandatory field in CK74. How did you overcome that issue, can you please share ?

  • BAPI for FRFT_B Transaction

    Hi there,
    I would like to know the BAPIs that can be used for the transactions FRFT_B ("Fast Entry with Repetitive Codes - Bank to Bank Transfer").
    Does anybody know a BAPI for this transaction?
    Thank you,
    Janete

    hi,
    To know the BAPI's for a particular transaction generally we follow the following steps.
    1. Find out the package of the transaction.
    Start FRFT_B  go to system --> status.
    Double click on transaction
    Note Package name for that particular transaction.
    Open this package in SE80
    Open business engineering-->Business object types
    Find the BO which sounds the most appropriate
    But there are no Business Objects for FRFT_B transaction.
    There is another method to find BAPIs
    Start FRFT_B go to system-->status
    Double click transaction FRFT_B
    Double click on package
    Read the application component. (this is FI-BL-PT   Payment Transactions)
    Then open the transaction BAPI
    Financial Accounting-> Bank Accounting->Payment Request-> Start Payment
    By this you can find the BAPI for a transaction.
    Hope this would be helpful for you.
    Regards,
    Supriya.
    Edited by: Supriya.ch on Jan 30, 2012 2:34 PM

  • FM / BAPI for FBR2 transaction.

    can anyone tell me
    FM / BAPI for FBR2 transaction.

    Dear:
                Please check
                BAPI_ACC_DOCUMENT_REV_CHECK
                Regards

  • Is there any BAPI for FBS1 Transaction

    Hi,
    Is there any BAPI for FBS1 transaction instead of using BDC.
    Regards,
    Aravind

    Hi Aravind ,
    I'm afraid that it's not possible to do it through BAPI ( because of he specificity of this txn ), you have to use either RFBIBL00 or your own BDC.
    Hope this helps,
    Erwan

  • Very Urgent : 'BAPI for CK74n in ECC 6.0 for crating the cost estimates'

    Hi guys,
    i am working in the upgradation project from 4.5b to ecc 6.0
    in 4.5b we have the tcode ck71 for cost estimates
    the respective tcode in ecc 6.0 is CK74N
    I want BAPI for tcode CK74N to upload the data
    can you please help me to find out the respective BAPI
    Thanks
    Ramesh

    Hi guys,
    i am working in the upgradation project from 4.5b to ecc 6.0
    in 4.5b we have the tcode ck71 for cost estimates
    the respective tcode in ecc 6.0 is CK74N
    I want BAPI for tcode CK74N to upload the data
    can you please help me to find out the respective BAPI
    Thanks
    Ramesh

  • Require bapi for create billing document

    Hi,
    Guru.....
    Please provide the Bapi for Backgournd create Billing document with refrence to Delivery.
    Thanks
    Arun

    HI
    Try with T-Code VF06 for automatic back- ground billing document creation based on delivery with PGI
    Check the Below link
    [Re: automatic delivery and billing|automatic delivery and billing;
    Regards,
    Prasanna
    Edited by: prasanna_sap on Feb 1, 2012 12:09 PM

  • BAPI for AFS BOM Creation through Cost Sheet

    Hello Experts,
    Is there any way to create the AFS BOM through BAPI.
    Client requirement is to create the automatic AFS BOM through Cost Sheet (KKE1), I already developed custom Cost Sheet as per the requirement .
    When we create the Cost Sheet Using KKE1 / ZKKE1, automatically AFS BOM should be create in the system with all grid values of component.
    I'm not getting how should I create the AFS BOM using all the components in the Cost Sheet with Grid values.
    There is no issue in creation of simple BOM using Bapi but for AFS BOM I'm facing problem.
    Please suggest and also tell the possibility.
    Thanks & Regards
    Prajyot.D

    Hi!  Thanks for your help.  I used CS_BI_BOM_CREATE_BATCH_INPUT1 and was able to create the BOMs successfully.  My problem now is on the change.  I tried using CS_BI_BOM_CHANGE_BATCH_INPUT but I kept running into various errors.  I think it has something to do with the fields that I am populating in the structures and tables that are being passed to the BAPI.  I tried researching for CS_BI_BOM_CHANGE_BATCH_INPUT but could not find any match.  The function module documentation is not available as well.  If you have used this FM in the past, will appreciate if you could share some inputs on how you were able to make this work.  Thanks a lot!

  • Bapi for migo transaction

    i have created a bapi to upload data for MIGO transaction.. (GOODS RECEIPT-->PURCHASE ORDER)
    i am getting the error " stock posting is not possible for this material "'.
    when i create directly, it is posted.. while uploading through the program it shows the above error.
    please suggest if anyone knows....
    Thanks in advance,
    Dhivya N.

    *& Report  ZR_MIGO_UPLOAD
    *& package name : zabap
    *& transport request number : MIDK901443
    *& program to upload goods movement
    REPORT ZR_MIGO_UPLOAD.
    ***DATA DECLARATION***
    type-POOLs:  icon.
    TYPES: BEGIN OF TY_GR_PO,
            EBELN(10) TYPE c ,     "'PO NUMBEr
            EBELP(10) TYPE c,     "PO ITEM NUMBER
    *       LGOBE TYPE LGOBE,     "STORAGE LOCATION DESCRIPTION
            LGORT(10) TYPE c,     "STORAGE LOCATION
            XFELD TYPE c,     "ITEM OK
            GERNR(10) TYPE c,     "SERIALNUMBER
            END OF TY_GR_PO.
    DATA: TA_GR_PO TYPE TABLE OF TY_GR_PO,    "TABLE FOR GOODS RECEIPT PURCHASE ORDER
           WA_GR_PO TYPE TY_GR_PO.
    DATA: BLDAT TYPE BLDAT,     "DOCUMENT DATE
            BUDAT TYPE BUDAT,     "POSTING DATE
            WEVER TYPE WEVER.     "VERSION FOR PRINTING GR SLIP
    ***BAPI DECLARATION***
    DATA: BEGIN OF GM_HEAD OCCURS 0.                    "Material Document Header Data
             INCLUDE STRUCTURE BAPI2017_GM_HEAD_01.
    DATA: END OF GM_HEAD.
    DATA: BEGIN OF GM_CODE OCCURS 0.
             INCLUDE STRUCTURE BAPI2017_GM_CODE.          "Assign Code to Transaction for Goods Movement
    DATA: END OF GM_CODE.
    DATA: BEGIN OF GM_RET OCCURS 0.
             INCLUDE STRUCTURE BAPI2017_GM_HEAD_RET.       "Material Document Number/Material Document Year
    DATA: END OF GM_RET.
    DATA: BEGIN OF GM_ITEM OCCURS 0.
             INCLUDE STRUCTURE BAPI2017_GM_ITEM_CREATE.    "Material Document Items
    DATA: END OF GM_ITEM.
    DATA: BEGIN OF GM_SER OCCURS 0.
             INCLUDE STRUCTURE BAPI2017_GM_SERIALNUMBER.    "Serial Number
    DATA: END OF GM_SER.
    data: BEGIN OF ta_bapireturn OCCURS 0.
            INCLUDE STRUCTURE BAPIRET2.
    data: END OF ta_bapireturn.
    ***declaration of excel file handling table***
    FIELD-SYMBOLS: <fs> type any.    "field symbol for alsm_excel
    DATA: TA_EXCEL TYPE TABLE OF ALSMEX_TABLINE,  "table to contain excel sheet values
           WA_EXCEL TYPE ALSMEX_TABLINE.
    ***declaration of other parameters***
    data:       V_brow type i VALUE    2,    "BEGIN OF ROW
                 V_bcol type i value   1,     "BEGIN OF COL
                 V_erow type i value 65536,   "END OF ROW
                 V_ecol type i value 256.     "END OF COLUMN
    DATA:  V_sear type string,
            V_INDEX TYPE i,
            V_tabix type sy-tabix,     "current line.
            v_lines type i.          "total number of records
    DATA: DATE TYPE DATS.
    ***SELECTION SCREEN***
    ***SELECTION SCREEN DESIGN***
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 3.
    PARAMETERS: zCODE(2) TYPE C MATCHCODE OBJECT H_T158G,
                 zrefdoc type REFDOC,
                 version type WEVER.
    SELECTION-SCREEN skip 5.
    PARAMETERS: p_file type ibipparms-path.
    SELECTION-SCREEN SKIP 3.
    SELECTION-SCREEN END OF BLOCK b1.
    ***SELECTION SCREEN VALUE REQUEST***
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
       CALL FUNCTION 'F4_FILENAME'                                    "f4 help for file name
         EXPORTING
           PROGRAM_NAME  = SYST-CPROG
           DYNPRO_NUMBER = SYST-DYNNR
           FIELD_NAME    = 'P_FILE'
         IMPORTING
           FILE_NAME     = P_FILE.
    ***SELECTION SCREEN EVENT***
    AT SELECTION-SCREEN.                                 "validation
       if p_file <> ''.
         V_sear = p_file.
         SEARCH V_sear for '.xls'.
         if sy-subrc <> 0.
           message 'please provide excel file. it is not valid' type 'E'.
         ENDIF.
       ENDIF.
    INITIALIZATION.
    *   DATE = '17.04.14'.
       GM_HEAD-PSTNG_DATE = SY-DATUM.
       GM_HEAD-DOC_DATE   = SY-DATUM.
       gm_head-pr_uname = sy-uname.
    ***START OF SELECTION***
    START-OF-SELECTION.
       gm_head-REF_DOC_NO = zrefdoc.
       gm_head-VER_GR_GI_SLIP = version.
       GM_CODE-GM_CODE = zCODE.
       PERFORM EXCEL_UPLOAD.
       PERFORM EXCEL_CONVERSION.
       PERFORM NO_RECORDS.
    END-OF-SELECTION.
       PERFORM BAPI_ASSIGNMENT.
       PERFORM BAPI_FM.
    *&      Form  EXCEL_UPLOAD
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM EXCEL_UPLOAD .
       CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
         EXPORTING
           FILENAME                = P_FILE
           I_BEGIN_COL             = V_BCOL
           I_BEGIN_ROW             = V_BROW
           I_END_COL               = V_ECOL
           I_END_ROW               = V_EROW
         TABLES
           INTERN                  = TA_EXCEL
         EXCEPTIONS
           INCONSISTENT_PARAMETERS = 1
           UPLOAD_OLE              = 2
           OTHERS                  = 3.
    ENDFORM.                    " EXCEL_UPLOAD
    *&      Form  EXCEL_CONVERSION
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM EXCEL_CONVERSION .
       if ta_excel is NOT INITIAL.
         sort ta_excel by row col.
         clear wa_excel.
         clear wa_GR_PO.
         LOOP AT ta_excel INTO wa_excel.
           move wa_excel-col to v_index.
           ASSIGN COMPONENT v_index OF STRUCTURE wa_GR_PO to <fs>.
           if sy-subrc = 0.
             move wa_excel-value to <fs>.
           ENDIF.
           at END OF row.
             append wa_GR_PO to ta_GR_PO.
             clear wa_GR_PO.
           ENDAT.
         ENDLOOP.
       else.
         MESSAGE 'no data for conversion' type 'I'.
       ENDIF.
    ENDFORM.                    " EXCEL_CONVERSION
    *&      Form  NO_RECORDS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM NO_RECORDS .
       DESCRIBE TABLE ta_GR_PO LINES v_lines.
       if v_lines = 0.
         MESSAGE 'NO RECORDS TO UPLOAD' TYPE 'E'.
       ENDIF.
    ENDFORM.                    " NO_RECORDS
    *&      Form  BAPI_ASSIGNMENT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM BAPI_ASSIGNMENT .
       IF TA_GR_PO IS NOT INITIAL.
         LOOP AT TA_GR_PO INTO WA_GR_PO.
           gm_item-PO_NUMBER = wa_gr_po-ebeln.
           GM_ITEM-STGE_LOC = WA_GR_PO-LGORT.
           GM_ITEM-PO_ITEM = WA_GR_PO-EBELP.
           GM_ITEM-NO_MORE_GR = 'X'."WA_GR_PO-XFELD'.
    *      GM_SER-SERIALNO = WA_GR_PO-GERNR.
           gm_item-NO_MORE_GR =  1.
           gm_item-ENTRY_QNT = 2.
           gm_item-MOVE_TYPE = 101.
    *      gm_item-MVT_IND = 'B'.
           gm_item-plant = 'P001'.
           gm_item-move_stloc = 'FG01'.
    *      GM_ITEM-SPEC_STOCK = 'K'.
           APPEND GM_ITEM.
           APPEND GM_SER.
         ENDLOOP.
        ELSE.
          MESSAGE 'DATA IS NOT UPLOADED' TYPE 'I'.
        ENDIF.
    ENDFORM.                    " BAPI_ASSIGNMENT
    *&      Form  BAPI_FM
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM BAPI_FM .
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
       EXPORTING
         GOODSMVT_HEADER               = gm_head
         GOODSMVT_CODE                 = gm_code
    *   TESTRUN                       = ' '
    *   GOODSMVT_REF_EWM              =
      IMPORTING
        GOODSMVT_HEADRET              = gm_ret
    *   MATERIALDOCUMENT              =
    *   MATDOCUMENTYEAR               =
       TABLES
         GOODSMVT_ITEM                 = gm_item
        GOODSMVT_SERIALNUMBER         =  gm_ser
         RETURN                        = ta_bapireturn
    *   GOODSMVT_SERV_PART_DATA       =
    *   EXTENSIONIN                   =
    if ta_bapireturn-type = 'S'.
         write:/ icon_green_light as icon,
                 'success: Material document',gm_ret-mat_doc,  'is created for the GOODS RECEIPT- po number : ', wa_gr_po-ebeln,
               / 'reason:' , ta_bapireturn-message.
    ELSEIF ta_bapireturn-type = 'E'.
         write:/ icon_red_light as icon,
                 'error: Material document',gm_ret-mat_doc , 'is not created for the GOOD RECEIPT- po number : ', wa_gr_po-ebeln,
               / 'reason:' , ta_bapireturn-message.
    ENDIF.
    ENDFORM.                    " BAPI_FM

  • Required BAPI for changing vendor prices

    Hi experts,
    Can any one  change vendor prices using bapi inthe Transaction of MEK1, If yes please give the bapi name.
    My requirement is to change the vendor price from an a legacy file, am going to use BAPI for that.
    Anyone help this out.
    Thnx and Regards,
    Mohana
    Edited by: Mohana Vijayan on Mar 6, 2009 7:03 AM

    Hai Experts,
    I searched lot, i found BAPI_PRICES_CONDITIONS, Is this Bapi is correct one. Any of our experts used this before?
    Please anyone suggest this.
    Mohana

  • FM/Bapi for ME12 transaction

    Hi All,
    Is there any FM/Bapi for creating new validity periods for the existing Info record.
    By using the FM RV_CONDITION_COPY, i'm able to add new validity periods in the info record. But i'm unable to add price if the condition type contains scaling.
    If anybody has used this FM, kindly let me know how to add the pricing conditions for scales.
    Regards,
    Sridhar G

    wrong FM.
    Unfortunately, the 'module' MM-PUR does not have such nice things as BAPIs (to make things even worse, it's 'graced' with enjoy-transactions), so you will not be lucky there.
    If you want  to migrate/update info-records you still have to use good old RM06IBI0. Attach it to an LSMW and that will make things much easier for you, especially when you have to map condition scales.

  • BAPI for CJ20N transaction

    I have used following step to create project/WBS:
    1.BAPI_PS_INITIALIZATION
    2.BAPI_BUS2001_CREATE
    3.BAPI_BUS2054_CREATE_MULTI
    4.BAPI_BUS2001_SET_STATUS (To set the status at project level)
    OR
    BAPI_BUS2054_SET_STATUS (To set the status at WBS element level)
    5.BAPI_PS_PRECOMMIT
    but in PS our have custom field at WBS element level, these BAPI will create a project but won't  update custom field.
    how to resolve the problem?
    thks

    Hi !
    Please have a look to the transaction BAPI .
    The Bapis of the project-system described there do have completely other nemas the you've listed... i.e.
    BAPI_PROJECTDEF_CREATE or BAPI_PROJECTDEF_UPDATE ....
    There's a very good docu for the BAPIs in the transaction BAPI .
    Regards
    Rainer
    Some points would be nive if that helped.

  • What is exact BAPI for FB01 transaction......

    Hi,
       Currently i got requirement to upload transactional data into FB01 using BAPI. I used BAPI_acc_gl_posting_post but it applicable only for GLs, but i want to upload Vendors, Customers, assets, Materials.. Please tell me apropriate BAPI for the requirement. Its urgent.
    Thanks in advance...........
    Regards,
    Chinna.

    Thanks Atish....
        I have written code using BAPI_ACC_DOCUMENT_POST. But it is not posting and it is not generating Object Key...
    Please go thru the code and tell the solutions....
    Thanks in Advance......
    REPORT  zk_fi_fb01                     .
    Data: v_objkey(20) type c.
    Data: Docheader type BAPIACHE09.
    Data: ACCOUNTGL LIKE BAPIACGL09 occurs 0 with header line,
         ACCOUNTRECEIVABLE like BAPIACAR09,
          ACCOUNTPAYABLE like BAPIACAP09 occurs 0 with header line,
          CURRENCYAMOUNT like BAPIACCR09 occurs 0 with header line,
          RETURN like BAPIRET2 occurs 0.
    Data: obj_typ like BAPIACHE09-OBJ_TYPE,
          OBJ_KEY like BAPIACHE09-OBJ_KEY,
          OBJ_SYS like BAPIACHE09-OBJ_SYS.
    Data: gv_belnr type belnr_d.
    Data:file_Na type String.
    Data: lsys like TBDLS-LOGSYS.
    *START OF SELECTION
    START-OF-SELECTION.
    *CALL FUNCTION 'NUMBER_GET_NEXT'
    EXPORTING
       nr_range_nr                  = '19'
       object                       = 'RF_BELEG' "'FIAA-BELNR'
      QUANTITY                      = '1'
      SUBOBJECT                     = '7777'
      TOYEAR                        = '2007'
      IGNORE_BUFFER                = ' '
    IMPORTING
      NUMBER                        = gv_belnr
    QUANTITY                      =
    RETURNCODE                    =
    *CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
    IMPORTING
      OWN_LOGICAL_SYSTEM                   = lsys
    EXCEPTIONS
      OWN_LOGICAL_SYSTEM_NOT_DEFINED       = 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.
    *concatenate gv_belnr '7777' '2007' into v_objkey.
    *Filling Document Header Details
    *Docheader-OBJ_TYPE = 'BEBD'.
    *Docheader-OBJ_key = V_objkey.
    *Docheader-OBJ_SYS = lsys.
    *docheader-BUS_ACT = 'RFBU'.
    Docheader-USERNAME = sy-uname.
    Docheader-COMP_CODE = '7777'.
    Docheader-DOC_DATE   = '20070725'.
    Docheader-PSTNG_DATE = '20070725'.
    Docheader-FISC_YEAR = '2007'.
    *DOCHEADER-OBJ_KEY_R = 'X'.
    Docheader-DOC_TYPE = 'KR'.
    *Item data for ACCOUNTGL
    ACCOUNTGL-ITEMNO_ACC = '0000000001'.
    ACCOUNTGL-GL_ACCOUNT = '0000000102'.         "99900
    ACCOUNTGL-DOC_TYPE   = 'KR'.
    ACCOUNTGL-COMP_CODE  = '7777'.
    ACCOUNTGL-FISC_YEAR  = '2007'.
    ACCOUNTGL-PSTNG_DATE = '20070725'.
    ACCOUNTGL-DE_CRE_IND = 'S'.
    append ACCOUNTGL.
    ACCOUNTGL-ITEMNO_ACC = '0000000002'.
    ACCOUNTGL-GL_ACCOUNT = '0000400002'.         "99900
    ACCOUNTGL-DOC_TYPE   = 'KR'.
    ACCOUNTGL-COMP_CODE  = '7777'.
    ACCOUNTGL-FISC_YEAR  = '2007'.
    ACCOUNTGL-PSTNG_DATE = '20070725'.
    ACCOUNTGL-DE_CRE_IND = 'H'.
    append ACCOUNTGL.
    *Account payable
    ACCOUNTPAYABLE-ITEMNO_ACC = '0000000001'.
    ACCOUNTPAYABLE-GL_ACCOUNT = '0000000102'.
    ACCOUNTPAYABLE-COMP_CODE  = '7777'.
    append ACCOUNTPAYABLE.
    ACCOUNTPAYABLE-ITEMNO_ACC = '0000000002'.
    ACCOUNTPAYABLE-GL_ACCOUNT = '0000400002'.
    ACCOUNTPAYABLE-COMP_CODE  = '7777'.
    append ACCOUNTPAYABLE.
    *Currency Amount
    CURRENCYAMOUNT-ITEMNO_ACC = '0000000001'.
    CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
    MOVE 1000 TO CURRENCYAMOUNT-AMT_DOCCUR.
    Append CURRENCYAMOUNT.
    CURRENCYAMOUNT-ITEMNO_ACC = '0000000002'.
    CURRENCYAMOUNT-CURRENCY_ISO = 'INR'.
    MOVE '1000-' to CURRENCYAMOUNT-AMT_DOCCUR.
    Append CURRENCYAMOUNT.
    clear CURRENCYAMOUNT.
    clear ACCOUNTGL.
    CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
      EXPORTING
        documentheader          = Docheader
      CUSTOMERCPD             =
      CONTRACTHEADER          =
    IMPORTING
       OBJ_TYPE                =  obj_typ
       OBJ_KEY                 =  obj_key
       OBJ_SYS                 =  obj_sys
      tables
       ACCOUNTGL               = ACCOUNTGL
      ACCOUNTRECEIVABLE       =
      ACCOUNTPAYABLE          = ACCOUNTPAYABLE
      ACCOUNTTAX              =
        currencyamount          = CURRENCYAMOUNT
      CRITERIA                =
      VALUEFIELD              =
      EXTENSION1              =
        return                  = return.
    if sy-subrc = 0.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
       WAIT          = ' '.
    endif.
    if sy-subrc = 0.
    WRITE: / OBJ_KEY,
             OBJ_TYP,
             OBJ_SYS.
    endif.

Maybe you are looking for

  • NULL Value in CLOB

    Hi, I am calling a stored procedure with CLOB parameter and I need to pass NULL value to CLOB paramter through ADO in VC++. My problem is when I send CLOB value as NULL a single Digit Binary value is inserted.I am using SAFEARRAY and AppendChunk mech

  • SPUM4 not doing anything

    Hi, I'm doing an upgrade from 46C to ECC6, switching to unicode from a MDMP system. I've finished the prepare and I'm trying to run SPUM4. I've initialized the language list, all the tables are in initial status. When I select a group of tables and s

  • Wizard bug - conditional validation

    Hello, We require validation on a wizard to prevent the user from navigating from a particular page to the next page unless they have checked a checkbox. The underlying column is not mandatory because the user may not have to visit this particular pa

  • I can no longer run Adobe PhotoShop 8 with Mac Mountain Lion

    I can no longer run Adobe PhotoShop 8 with Mac Mountain Lion. I get a recurring error message 150:30. Please help

  • Unable to install to chosen location???

    im installing adobe photoshop (or rather, trying to =/) im at the part where you select a location to install. my hard drive is too full to install there so i need to install it to removable storage. im able to install it to my external hard drive bu