F-22, Need to upload the document using BAPI

we have requirement to use BAPI for uploading document to f-22,
For the BAPI when we input data all the data are correctly posted except posting keys,
Our requirement is to use the customized posting for crediting customer and standard posting key for debiting GL account,
We have input the required posting key in BAPI but still its not picking the posting key, its taking the standard posting key,
Document type used is DC and DB,
so is there any relation between document type and posting key, any idea from where BAPI is picking Posting key?

Hello,
it was originally not intended to use the BAPI to post
payment documnents. For simplicity the posting keys are not
at the BAPI's interface, instead they are defaulted with
the standard posting keys depending on account type and debit/credit
indicator.
Please see note 487722 which explains how to pass addditional data
to the BAPI in parameter EXTENSION1. You can implement the
Business Transaction Event (BTE) RWBAPI01 to populate the posting
key (t_accit-bschl) from EXTENSION1 parameter.
I hope this helps!
BR,
Raquel

Similar Messages

  • Unable to transfer post the document using BAPI "BAPI_GOODSMVT_CREATE"

    Hi Experts,
    I am unable to post the document using BAPI "BAPI_GOODSMVT_CREATE", getting error "_Sales order stock --- does not exist_"
    details are stated below:
    GM_CODE : 04, it is working fine for the scenario with same saleorder number and line item, but when i give same sale order number and different line item, then i am getting the above error.
    Example : Posting from Saleorder A with line item 100 to saleorder A with lineitem 100 its working fine, but when we are posting
                    from Saleorder A with lineitem 100 to saleorder A with line item 200 it is not working.
    Also When I trying to do with the transaction MB1B manually, it is working fine. kindly suggest me.
    Needed Urgently....
    Appreciate for you early response.
    Regards,
    Sathya.
    Edited by: Sathyanarayana Raghavendra on May 6, 2010 1:00 PM

    Hi,
    Hi Did you call Function BAPI_TRANSACTION_COMMIT' after calling the BAPI.    ?
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = c_x.
    Regards,
    Jovito.

  • Upload the data using BAPI in LSMW

    Hi
      I want to upload the data using the BAPI in LSMW,but i dont know what value should be passed in
      1- Business Object
      2- Method
    fields.
    Ex- Suppose i want to upload the Material Master Data then what should be the value of these two fields.
    Thanks
    Mrutyunjaya Tripathy

    Hi
      Sorry to say that i am little bit confuse with your answer
    1-The business object already contains some object name wheather i have to give object names or different,As you have mentioned to give the tcode than what tcode that would be
    2-If i am giving any internal table name in the method field it is giving me error because this field is related to the business object field
    Thanks
    Tripathy m

  • Upload the data using bapi

    hi,
    i am new for bapi , can anyone tell me how to upload data using bapi with example?
    plz tell how to find bapi & how to use in coding to upload the data?

    Hi ,
             To find Bapi There a tcode Bapi which will take you to bapi Explorer From there you can find required
              the Bapi Function Module and its Documentation .
      [  www.sap-img.com/abap/bapi-step-by-step-guidance.htm ]
    [http://www.sappro.com/tag.cfm?session=&tag=bapi%20programming]
    [https://wiki.sdn.sap.com/wiki/display/Snippets/SalesordercreationusingBAPI]
    Regards
    Nilesh

  • Posting the Document using BAPI

    Hi All,
             We have posted document manually using 'FB01' tranasaction.But we are unable to post document through 'BAPI_ACC_DOCUMENT_POST'.we are getting errors like ''FI/CO interface: Line item entered several times''.can anybody send me the sample code for posting document.
    Thank You,
    Anupama.

    Hi,
    In the tables passed to the BAPI : accountgl, accountreceivable, accounttax and so on - you need to use a unique item number (position number, field itemno_acc) for each item.
    There is a standard SAP report with instruction how to use that BAPI:  porgram ACC_BAPI_TEST_DOCUMENT .
    good luck

  • Help needed in doing the scenario using BAPI.

    Hi...
         Please help me out in doing the below sceanrio.
    Input is the material number or name.
    we have to check whether the material is available or not, and if it is available we have to find out the cost of that material.If the materila is not available we have to get the suppliers to get that material.
    This is the scenario.
    which type of BAPI we have to use for doing the above scenario.
    Please help in doing this sceanrio.
    Regards,
    Leela

    Hi,
    Use to this BAPI BAPI_MATERIAL_EXISTENCECHECK and provide the material no as the input. you can check whether that material exists or not.
    Also if you want to check the details of a particular material you can use BAPI_MATERIAL_GET_ALL (For costing you can find the details in Valuation data) and also BAPI_MATERIAL_GET_DETAIL
    Regards,
    Nithiyanandam
    Edited by: Nithiyanandam A.U. on Sep 5, 2008 7:53 AM

  • Uploading the document giving error in CV01n transaction

    Hi All,
       I created one content repository in ECC 5.0, when i was created that time it was giving the error http 401..etc. I solved it by entering the Content server Administrator username and password.
    After creating the content repository, i am trying to upload the document using the transztion cv01n in xls format.It is giving the following error Error while checking in and storing: C:\Documents and Settings\Sridhar\Desktop\DailyChecking.xls Message no. 26253..
    Is there any wrong in that configuration or what?
    Can i have solution for this problem?  Please let me know...
    Thanks & Regards,
    Sridhar M.

    Hi Sridhar
    The path in dc20 C://abc is the path where the temporary files wud be stored..
    For example, when u double click a checked in document, it will open the file and a temporary file would be created in the path mentioned in dc20 against data carrier PC..
    The path mentioned is the area where these temporary file should be stored while u process an original application file..
    If u dont want any temporary files to be stored in ur desktop, simply do not put anything in the path..
    Regards
    Aby
    Please award points if u find the answer useful

  • Upload the documents

    Hi All,
    I am uploading the document throught document library.
    My requirement is i need to show the present week documents monday to friday.
    After Friday 5 pm it should shownext week documents.
    For the present week in page load i wrote code as 
     var culture = CultureInfo.GetCultureInfo("en-US");
                                    var dateTimeInfo = DateTimeFormatInfo.GetInstance(culture);
                                    var dateTime = DateTime.Today;
                                    int weekNumber = culture.Calendar.GetWeekOfYear(dateTime, dateTimeInfo.CalendarWeekRule, dateTimeInfo.FirstDayOfWeek);
     Items = Items.AsEnumerable().Where(d => culture.Calendar.GetWeekOfYear(d.MeetingDate, dateTimeInfo.CalendarWeekRule, dateTimeInfo.FirstDayOfWeek) == weekNumber).ToList();
    Please can any one help me with the code.
    Thank you,
    Sowjanya.

    Hi,
    According to your description, you might want to retrieve items between a specific date range.
    A suggestion is that you can use CAML query to composite the query statement to retrieve items created in a specific date range.
    Here is an article with code demo will provide more information about how to achieve it:
    http://www.codeproject.com/Articles/414414/SharePoint-Working-with-Dates-in-CAML
    You can also composite your CAML query statement with the help of a recommended tool:
     http://www.camldesigner.com/?p=594
    Feel free to reply if there are still any questions.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to upload the documents like PDF, EXCEL and WORD

    Hi,
    I am working on UI, I am tracking the COREMODS data using this UI. My requirement is need to maintain the related documents also in database using this UI. I think SLM system have that functionality. If any one know about this functionality, explain about
    How to upload the documents into database.
    How to maintain this documents in database.
    Is there any standard methods/function modules to upload this documents ( I am not asking about content of document, I am expecting about total file).
    i.e. I want to maintain the all core mod related test cases and other documents in SAP database.
    How to handle this functionality?        
    Rayudu

    Hi Rayudu,
    For office documents we can use [Business Document Service|http://help.sap.com/saphelp_nw70/helpdata/EN/3d/90a9371c726343e10000009b38f842/frameset.htm]
    Cheers,
    Jose.

  • Creating a sales document using BAPI in web dynpro by uploading a file

    Hi ALL,
    Can some one help me how to create a sales document using  BAPI by uploading a file as input...Can someone  provide me a sample program....
    Thanks n Regards,
    Praveenn.
    Edited by: praveenn on Aug 23, 2011 12:42 PM

    Hi Sri,
    Thx for the response...
    Here is the code that i followed for creating a BAPI_SALESORDER_CREATE1 by uploading a text file as input.
    Just create a Attribute  in the VIEW CONTEXT of type String.
    method ONACTIONCREATE_SO .
    types : Begin of ty_data,
             sales_org  type vkorg,
             doc_type   type AUART,
             DISTR_CHAN type VTWEG,
             DIVISION   type spart,
             material   type matnr,
             partn_role type PARVW,
             PARTN_NUMB type kunnr,
           end of ty_data.
      DATA  :it_table TYPE  TABLE OF ty_data,
             i_data   TYPE  TABLE OF string,
             l_string TYPE string,
             wa_table TYPE ty_Data,
             l_xstring TYPE xstring,
             fields TYPE string_table,
             lv_field TYPE string.
    DATA: wa_order_header_in TYPE BAPISDHD1,
          it_order_items_in  TYPE TABLE OF BAPISDITM,
          wa_order_items_in  TYPE BAPISDITM,
          it_order_partners  TYPE TABLE OF BAPIPARNR,
          wa_order_partners  TYPE BAPIPARNR,
          it_return TYPE TABLE OF BAPIRET2,
          wa_return TYPE BAPIRET2.
    DATA : sales_doc type bapivbeln-vbeln.
    DATA:
       node_zfinal_node  TYPE REF TO if_wd_context_node,
       elem_zfinal_node  TYPE REF TO if_wd_context_element,
       stru_zfinal_node  TYPE if_main_view=>element_zfinal_node .
    get single attribute
      wd_context->get_attribute(
      EXPORTING
      name =  'DATASOURCE'
      IMPORTING
      value = l_xstring ).
      CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
        EXPORTING
          in_xstring = l_xstring
        IMPORTING
          out_string = l_string.
    SPLIT l_string  AT cl_abap_char_utilities=>newline INTO TABLE i_data.
      LOOP AT i_data INTO l_string.
       SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
        READ TABLE fields INTO lv_field INDEX 1.
        wa_table-sales_org = lv_field.
        READ TABLE fields INTO lv_field INDEX 2.
        wa_table-doc_type = lv_field.
        READ TABLE fields INTO lv_field INDEX 3.
        wa_table-DISTR_CHAN = lv_field.
        READ TABLE fields INTO lv_field INDEX 4.
        wa_table-DIVISION = lv_field.
        READ TABLE fields INTO lv_field INDEX 5.
        wa_table-material  = lv_field.
        READ TABLE fields INTO lv_field INDEX 6.
        wa_table-partn_role  = lv_field.
        READ TABLE fields INTO lv_field INDEX 7.
        wa_table-partn_numb  = lv_field.
    APPEND wa_table TO it_table.
      ENDLOOP.
    loop at it_table into wa_table.
    clear : wa_order_header_in.
    wa_order_header_in-sales_org   = wa_table-sales_org.
    wa_order_header_in-doc_type    = wa_table-doc_type.
    wa_order_header_in-distr_chan  = wa_table-distr_chan.
    wa_order_header_in-division    = wa_table-division.
    clear : wa_order_items_in.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = wa_table-material
    IMPORTING
       OUTPUT        = wa_order_items_in-material.
    *wa_order_items_in-req_qty  = wa_table-req_qty.
    append wa_order_items_in to it_order_items_in.
    clear : wa_order_partners.
    wa_order_partners-partn_role = wa_table-partn_role.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input         = wa_table-partn_numb
    IMPORTING
       OUTPUT        = wa_order_partners-partn_numb
    *wa_order_partners-partn_numb = wa_table-partn_numb.
    append wa_order_partners to it_order_partners.
    endloop.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
      SALESDOCUMENTIN               =
        order_header_in               = wa_order_header_in
      ORDER_HEADER_INX              =
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
    IMPORTING
       SALESDOCUMENT                 = sales_doc
      tables
       RETURN                        = it_return
       ORDER_ITEMS_IN                = it_order_items_in
      ORDER_ITEMS_INX               =
        order_partners                = it_order_partners.
      ORDER_SCHEDULES_IN            =
    get message manager
    DATA: l_current_controller TYPE REF TO if_wd_controller,
           l_message_manager    TYPE REF TO if_wd_message_manager.
           l_current_controller ?= wd_this->wd_get_api( ).
    DATA:  v_message_text TYPE string.
    When Sales Order is created commit the data
    IF NOT sales_doc IS INITIAL.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
       EXPORTING wait = 'X'.
      CONCATENATE 'Sales Document' sales_doc 'has been created.' INTO v_message_text SEPARATED BY space.
    Report Success message
      CALL METHOD l_message_manager->report_success
      EXPORTING
      message_text = v_message_text.
      ELSE.
      v_message_text = 'Error Creating Sales Order'.
    Report Error message
    CALL METHOD l_message_manager->report_error_message
    EXPORTING
    message_text = v_message_text.
    ENDIF.
    endmethod.
    Edited by: praveenn on Aug 30, 2011 2:41 PM

  • Errors while uploading the document

    Hi ,
    I am implementing Applcore Attachment functionality to upload the docs to UCM.
    I have created Content Repository in Jdev by specifying the connection details of UCM instance.But I do not see any "Attachments" folder under "Contribution Folders" and no "Trash" folder either.
    Also , I see some errors ( in UCM server )when I upload the document as below:
    +Privilege cannot be determined for role sysmanager. Cannot find the group Attachments. Exception type is 'java.lang.Throwable'. [ Details ]+
    The content server has generated a diagnostic warning. The stack trace below shows more information.
    +!apUnableToDetermineRolePrivilege,sysmanager,Attachments!syExceptionType,java.lang.Throwable+
    java.lang.Throwable
    +     at intradoc.shared.RoleDefinitions.getRolePrivilegeEx(RoleDefinitions.java:266)+
    +     at intradoc.shared.RoleDefinitions.getRolePrivilege(RoleDefinitions.java:222)+
    +     at intradoc.shared.SecurityUtils.determineGroupPrivilege(SecurityUtils.java:119)+
    +     at intradoc.server.ServiceSecurityImplementor.determinePrivilege(ServiceSecurityImplementor.java:655)+
    +     at intradoc.server.DocumentAccessSecurity.checkSecurity(DocumentAccessSecurity.java:162)+
    +     at intradoc.server.DocumentAccessSecurity.checkSecurity(DocumentAccessSecurity.java:117)+
    +     at intradoc.server.ServiceSecurityImplementor.checkSecurity(ServiceSecurityImplementor.java:371)+
    +     at intradoc.server.Service.checkSecurity(Service.java:2776)+
    +     at intradoc.server.Service.checkSecurity(Service.java:2754)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
    +     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+
    More details can be viewed here
    here
    Any pointers will be helpful to me.
    Regards
    Aradhana

    Which version of UCM are you using? UCM 10g had different default content types and came with ADENG, ADHR, ADMFG etc. already created . 11g has a different set of content types which does not include ADENG. These content types are really just examples to get the system started an operational and would not ever be used in production (I hope).
    You can add the ADENG content type Administration > Admin Applets > Configuration Manager > Options > Content Types...
    A better solution would be to see where ADENG is being set in the code you should be able to change the dDocType setting to something supported in UCM 11g like 'document'
    Tim
    Edited by: Tim Snell on 23-Aug-2010 01:38
    Edited by: Tim Snell on 23-Aug-2010 01:38

  • I need to populate the Document Currency in the COPA analysis. At the movem

    I need to populate the Document Currency in the COPA analysis. At the movement Overhead reporting is Profitability Analysis Cube in BW. Now they want to Include the document currency in the reporting and they want add the field document currency and currency key. Can any one tell how to create the Document currency in COPA Analysis please. Thank you

    Hi,
    CO-PA will only store values in either operating concern currency or company code currency (if active). The fields FRWAE and KURSF are just for the line item display in transaction KE24 when pressing 'entry/op currency'.  COPA does not store values in the document ccy.
    The 'foreign currency' in the PA line item always contains the currency that was used for the conversion, but does not contain the document currency of the original document. So only in case the document currency was used for the translation of the PA values the foreign currency will  be equal document currency.
    In case of SD documents, CO-PA always uses the document currency as base of the conversion in order to transfer values of statistic condition types consistently.
    In case of FI/MM documents system uses the company code ccy as the base for conversion into operating concern ccy (foreign ccy).
    regards
    Waman

  • IPM11g: Uploading the document through Input Agent

    Hi,
    What is the difference between uploading the document through "*An input*" (which that maps an input file to an application when documents are uploaded in the background by the Input Agent.) and through "*Upload Document*".
    Thanks

    hi,
    1. Storage area [Content reposotory] ex-ZDMS,
    2.you need to create storage category ex-Z_DMS_DOC,
    3. you need to maintain this category in ZDMS.[Content repository].
    then run bapi,
    Benakaraj

  • HT1349 i need to put the documents from the mac onto the mac book air

    i need to put the documents from the mac onto the mac book air.  How to I transfer my mac documents and music information to my macBook air?

    You have many options.
    Network the two Macs
    Use a Thunderbolt or FireWire cable and use FireWire Target Disk Mode
    Use Setup Assistant when you first set up a new Mac, or Migration Assistant at any time thereafter
    Use an inexpensive USB flash drive
    Email documents and files to yourself
    Use Dropbox or similar service
    Those are just a few. If you explain further or reply with the model of your "older" Mac and which OS version it is using, more specific information can be provided.
    You may find Apple Support Communities contributor Pondini's OS X tip useful: Setting-up a new Mac from an old one, its Backups, or a PC

  • Posting period 011 2013 is not open while posting the document using F-02 getting the error

    Hi SAP Captains,
    Pls help me here.
    While posting the document using T-code F-02 getting the error "Posting period 011 2013 is not open.
    Please help me how to do, can you provide step by step.
    Rgds..Suresh

    Hi Suresh,
    You can search google and will get number of posts on this. This will lead to duplication of similar posts on forum.
    The message says "FI posting period is closed for 11th period of 2013". In which period you are trying to post the transaction?
    If it is past, open the FI posting periods in OB52.
    BR, Srinivas Salpala

Maybe you are looking for

  • ****URGENT HELP NEEDED**** unable to print on metalic silver paper

    I am in DESPERATE need of help. I am trying to print on silver metalic paper using my Photomart C3180, but it wont print.  It will printon white paper but not this stuff.  I need urgent help as I am trying to make my own wedding invitations that i ha

  • How to populate a Dropdown List from a Value Node

    Hi I have a WD application Java with an Interactive Form. In the WD context I have a value node of cardinality 0..n. In the Interactive Form I need to have the values of this node within a dropdown list. Which type of DDL is best choice and how do I

  • Problem in Database

    Dear all I am facing a problem in database well whenever a insert statement is fired the system is hangout and in server when some inactive sessions are killed the statement gets completed and always have to do that whenever a insert statement is fir

  • Parental Controls - love em, hate em

    I really like the parental controls in Yosemite - nice granularity and good job Apple.  However, there is one challenge that I face that hope as an easy answer that I may be overlooking. I have Web parental controls set to the default of 'Try to limi

  • JDBC Driver Problems for Oracle 10

    Trying to setup an OCI driver in our system but keep getting this response. INFO 2005-12-02 08:49:40,868 [STDOUT] java.lang.UnsatisfiedLinkError: C:\_EP\coldfusion\cfusion\lib\ocijdbc10.dll: The specified procedure could not be found INFO 2005-12-02