RM-CA - bapi or FM for creating RMCA document (trx FPE1)

Hi all,
anyone know if there is the possibility to create with bapi or FM a RMCA document, the manual transaction is FPE1.
I know the FKK_CREATE_DOCUMENT,
but the iusse is to simulate the creation processing open item of another document.
any help is welcome.
thanks
enzo

Hi Enzo,
Please try with bapi  BAPI_CTRACDOCUMENT_CREATE  and next you must use  BAPI_TRANSACTION_COMMIT.
CALL FUNCTION 'BAPI_CTRACDOCUMENT_CREATE'
  EXPORTING
    testrun                    = space
    documentheader      = documentheader
  IMPORTING
    documentnumber     = documento
    return                      = return2
  TABLES
    partnerpositions       = partnerpos
    genledgerpositions   = genledgerpositions.
IF NOT documento IS INITIAL.
  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      wait   = 'X'
    IMPORTING
      return = return2.
ENDIF.
I hope to have helped you.
Regards,
José Luzardo

Similar Messages

  • Which FM/BAPI is used for creating repair orders

    Hi,
       Please tell me which FM / BAPI is used for creating service notifications,Repair/Service order and Delivery Docs.How to find out??
    Please someone help me.
    Thanks,
    Neelima

    For service notification you can try using this.
    'BAPI_ALM_NOTIF_CREATE'

  • BAPI/ Function Modules for creating Settlement rules for Project in CJ01 .

    Hi Experts ,
    I need to create Settlement rules for WBS elements in Projects . Please let me know if there are any BAPI or Function Modules for the same . The Function Modules "k_settlement_rules_update" , "IBAPI_ALM_ORDERSRULE_CREATE" & 'K_SRULE_CREATE'
    are in "Not Released" status . so our practices does not allow us to use them .. please suggest any other BAPI or FM for creating Settlement rules .
    Thanks in advance ...
    Anil

    Hi ,
    Thanx for ur prompt reply , This function module is used for creating WBS elements . I didnot find any parameters or process to create settlement rule .. Please let me know how to use this or if there are any other BAPI available .
    Thanks
    Anil

  • 'BAPI_GOODSMVT_CREATE' takes more time for creating material document

    Hi Experts,
    I m using 'BAPI_GOODSMVT_CREATE' in my custom report, it takes more time for creating Material documents.
    Please let me know if there is any option to overcome this issue.
    Thanks in advance
    Regards,
    Leo

    Hi,
    please check if some of following OSS notes are not valid for your problem:
    [Note 838036 - AFS: Performance issues during GR with ref. to PO|https://service.sap.com/sap/support/notes/838036]
    [Note 391142 - Performance: Goods receipt for inbound delivery|https://service.sap.com/sap/support/notes/391142]
    [Note 1414418 - Goods receipt for customer returns: Various corrections|https://service.sap.com/sap/support/notes/1414418]
    The other idea is not to commit each call, but executing commit of packages e.g. after 1000 BAPI calls.
    But otherwise, I am afraid you can not do a lot about performance of standard BAPI. Maybe there is some customer enhancement which is taking too long inside the BAPI, but this has to be analysed by you. To analyse performance, just execute your program via tr. SE30.
    Regards
    Adrian

  • 'BAPI_GOODSMVT_CREATE' takes more time for creating material document for the 1st time

    Hi Experts,
    I am doing goods movement using BAPI_GOODSMVT_CREATE in my custom code.
    Then there is some functional configuration such that, material documents and TR and TO are getting created.
    Now I need to get TO and TR numbers from LTAK table passing material documnt number and year, which I got from above used BAPI.
    The problem I am facing is very strange.
    Only for the 1st time, I am not finding TR and TO values in LTAK table. And subsequent runs I get entries in LTAK in there is a wait time of 5 seconds after bapi call.
    I have found 'BAPI_GOODSMVT_CREATE' takes more time for creating material document with similar issue, but no solution or explanation.
    Note 838036 says something similar, but it seems obsolete.
    Kindly share your expertise and opinions.
    Thanks,
    Anil

    Hi,
    please check if some of following OSS notes are not valid for your problem:
    [Note 838036 - AFS: Performance issues during GR with ref. to PO|https://service.sap.com/sap/support/notes/838036]
    [Note 391142 - Performance: Goods receipt for inbound delivery|https://service.sap.com/sap/support/notes/391142]
    [Note 1414418 - Goods receipt for customer returns: Various corrections|https://service.sap.com/sap/support/notes/1414418]
    The other idea is not to commit each call, but executing commit of packages e.g. after 1000 BAPI calls.
    But otherwise, I am afraid you can not do a lot about performance of standard BAPI. Maybe there is some customer enhancement which is taking too long inside the BAPI, but this has to be analysed by you. To analyse performance, just execute your program via tr. SE30.
    Regards
    Adrian

  • 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

  • Need standard Bapi or FM for creating General Ledger (FS00 transaction)

    Hi,
    I need to upload (create) Master General Ledger data.
    My requirement is to use standard Bapi or FM for this purpose.
    Please tell me which Bapi or FM i can use for this purpose.
    Thanks in advance.

    Hi Suresh,
    The Function module you specified is not released. So, I cant use it. Thanks for your suggestion.
    Hi friends,
    My requirement is to create General Ledger Account (FS00 or FS01) using a standard Bapi or FM. Please tell me which Bapi or FM I can use for this purpose.
    I identified one related Bapi for this purpose (BAPI_ACC_GL_POSTING_POST). But my functional consultant says it is for posting General Ledger and cannot be used for ceating General Ledger account.
    Please clarify me.

  • Please help with this bapi for creating billing document

    I want to create a billing document using the bapi:  BAPI_BILLINGDOC_CREATEMULTIPLE from a delivery number and NOT A SALES ORDER.
    Please tell me what  details to be passed to table  BILLINGDATAIN . Please don't provide me function module documentation because it does n't help me create billing document from delivery. A sample source code or suggestion to what to pass would be really great!
    Thanks,
    Krishen
    P.S. Points assured for helpful answers and thanks for your time.

    Hi,
    Try this..
    DATA: s_vbap TYPE vbap.
    TABLES: vbak,vbap,likp, lips.
    DATA: t_billing TYPE STANDARD TABLE OF bapivbrk WITH HEADER LINE.
    DATA: t_conditions TYPE STANDARD TABLE OF bapikomv WITH HEADER LINE.
    DATA: t_return TYPE STANDARD TABLE OF bapireturn1 WITH HEADER LINE.
    DATA: t_ccard  TYPE STANDARD TABLE OF bapiccard_vf WITH HEADER LINE.
    DATA: t_errors TYPE STANDARD TABLE OF bapivbrkerrors WITH HEADER LINE.
    DATA: t_success TYPE STANDARD TABLE OF bapivbrksuccess WITH HEADER LINE
    PARAMETERS: p_vbeln TYPE vbeln.
    select single * from likp
                    where vbeln = p_vbeln.
    SELECT SINGLE * from lips where
                    vbeln = likp-vbeln.
      t_billing-salesorg   = likp-vkorg.
      t_billing-ref_doc     = likp-vbeln.
      t_billing-ref_item    = lips-posnr.
      t_billing-doc_number     = p_vbeln.
      t_billing-itm_number    = lips-posnr.
      t_billing-ordbilltyp  = 'ZINV'.
      t_billing-price_date = sy-datum.
      t_billing-ref_doc_ca  = likp-vbtyp.
      t_billing-material    = lips-matnr.
      t_billing-plant       = lips-werks.
      APPEND t_billing.
    CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
      TABLES
        billingdatain         = t_billing
        return                = t_return
        success               = t_success
    commit work.
    Thanks,
    Naren

  • BAPI or FM for creating transfer order with reference to reservation

    hi
    i need a BAPI or FM to create a transfer order with reference to a reservation. I tried BAPI_GOODSMVT_CREATE but the problem is it does not support movement type '311'. is there any FM or BAPI to use movement type '311' and create a transfer order with reference to a reservation? pls help

    Hi,
    Try Using WM_CREATE_GOODS_MOVEMENT first use this and later use any of the TO create FM.
    Thanks & Regards,
    YJR

  • BAPI or FM for create  delivery in header data & item data

    Hi All,
             In my requriment  i am downloading delivery data  i.e header data and item data . When  i am uploadinng the Modification data  through BAPI  or FM.
    Thank you,
    Dinesh Reddy

    Hi,
    If you are looking for BAPI to create delivery check the following BAPIs
    BAPI_OUTB_DELIVERY_CREATE_SLS
    BAPI_OUTB_DELIVERY_CREATE_STO
    BAPI_OUTB_DELIVERY_SAVEREPLICA
    Regards
    Prasenjit

  • Use JAXP for creating XML document

    Hi,
    I have used JAXP to create a XML docuemnt. But when I use Jaxp to parse it, it returns parsing error ''null''.
    I open the XML document in XMLspy and save again, then it can be parsed.
    Any suggestion for that? Thanks a lot.

    Are there any differences between the version created with jaxp and the one with xmlspy? are you using the validating parser? if you aren't you might be having trouble with white space. just a guess.

  • What is the proper method for creating a document with double spacing?

    There was a questioned posed regarding double spacing documents and it was suggested to set the leading to twice that of the font size.  Is this how "double spacing" is defined?

    Double-spacing is a concept traditionally used in word processing. In professional page layout, as you would use it in InDesign, the space between lines is called "leading" and refers to finer increments than word processing (Word's Single, 1.5 lines, Double, etc.) It is measured in units called "points." There are 12 points in an inch.
    In most professionally laid out publications, body copy of average column width is set with 1 to 4 points of space beyond the point size of the type. If the type size were 11 point, the leading might be set as between 12 and 15 points, depending on how much space you desired between lines.
    Why don't you tell us what is you're trying to accomplish, and perhaps attach a screen capture of what you're trying to do?

  • BAPI or FM for tcode FMBB

    Hi GUys,
    does anyone know if there is an existing BAPI or FM for creating a document in transaction FMBB?
    Many thanks,
    Ian

    Hi,
      use BAPI BAPI_0050_CREATE
    After calling the BAPI_0050_CREATE You have put the following :
    clear ret_tab.
    refresh ret_tab.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    IMPORTING
    return = ret_tab.
    Then the document is posted and the number is correct.
    Regards

  • BAPI for create IR and GR

    Hi All,
    I would like to use the BAPI to create the IR and GR.
    But i don't know which BAPI is use for create the IR and GR . Could you mind give any information about this?
    Regards,
    Luke

    Hi Luke,
    The function module "BAPI_GOODSMVT_CREATE " would perform the task.  Please refer to the following link.
    http://www.sap-img.com/abap/bapi-goodsmvt-create-to-post-goods-movement.htm
    Regards.

  • Bapi's for creating Maintenance order in IW31 with notification

    Hi All,
       Is there any bapi's for creating Maintenance order with Notification number in the transaction iw31.
      Also is there any bapi's for creating measurement document.
    Points will be awarded.
    Regards,
    vinoth

    RFC MeasDocument: Individual Processing, Create
    MEASUREM_DOCUM_RFC_SINGLE_001
    RFC MeasDocument: Individual Processing, Change/Display or Read
    MEASUREM_DOCUM_RFC_SINGLE_002

Maybe you are looking for