Error while posting SOAP message

I am trying to post a SOAP message but I keep getting this error. Can anybody help me on this. I tried using ALTOVA spy and SOAP Ui but the result is the same error.
     <SOAP:Body>
          <SOAP:Fault>
               <faultcode>SOAP:Server</faultcode>
               <faultstring>Server Error</faultstring>
               <detail>
                    <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                         <context>XIAdapter</context>
                         <code>ADAPTER.JAVA_EXCEPTION</code>
                         <text><![CDATA[
com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve binding for the given channelId: Binding:CID=null;
*     at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBindingByChannelId*(AbstractLookupManager.java:173)
     at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:431)
Scenario is SOAP Sender and IDOC reciever.

I tried reconfiguring also.
When I test from Integration Engine in RWB using the test message it is sucsseful. Infact I can see the IDOC too.
But when the basis guy tested with Adapter engine in RWB using the test tool, it gives the following error:
Error While Sending Message: Additional error text from response: com.sap.engine.interfaces.messaging.api.exception.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=BusComp_Siebel1;TS=;AN=SI_Sales_Order_OB_Async;ANS=http://trm.com:o2b:SalesOrderCreate; in the current context [Unknown].
Any idea where is the problem.
When we tried the WSN step we are facing this error in the very first step.
WSDL1.1, WSDL 2.0 definition element expected. Found [html: null] .
Edited by: Chandra Gunapati on Oct 7, 2009 10:00 PM

Similar Messages

  • Error while Posting ABIF: Message no. AA813

    Contact your system administrator (table error)
    Message no. AA813
    Diagnosis
    The investment support key 01 for the chart of depreciation PSL has not been defined.
    Procedure
    Define an investment support key using the Customizing menu.

    Dear Rupesh,
    Please refer SAP Note 1359761 - AA 813 when posting investment support. Detail as under:
    Symptom
    The system issues error message AA 813 when you enter an investment support.
    Other terms
    T085
    Reason and Prerequisites
    For the posting, the system uses a transaction type that does not match the investment measure.
    Solution
    When defining an investment measure, the system creates relevant transaction types. In these transaction types, the last two characters of the investment measure are encrypted.
    For the investment measure, the system therefore creates, for example, the transaction types
    I51 (Transaction type for claiming investment support)
    K51 (Transaction type for claiming investment support prior-year acquisitions)
    J51 (Transaction type for extraordinary clearing of investment support prior-year acquisitions)
    For consistency reasons, you can post the investment support area that belongs to the investment measure 51 only with the investment support transaction data in which the investment measure is encrypted. You must note this restriction if you also create separate transaction types for entering investment support.
    Thanks!!!
    Murlidhar Khatri

  • Error while sending SOAP message to PI

    Hi Guyz,
    I have a sync-asyn scneario SOAP to File via PI. When I test the scenario using test tool i.e SOAP UI , scenario runs fine. But when user is trying to send a message they are getting Error message as response . "No SOAP Envelope but 1 {}.
    Any idea what is this error. I tried to test the scenario with the same XML message that they are using.
    Regards,
    Loveena.

    Hi Loveena,
    What kind of application tries to connect with PI?
    Have you tried to mark Use No SOAP Envelope (Point 4. https://help.sap.com/saphelp_nw73/helpdata/en/48/3555240bea31c3e10000000a42189d/frameset.htm)?, in this way you can check that the message at least comes to PI.
    Regards.

  • Error while posting SOAP request

    Hi All,
       I am working on one SOAP to RFC syncronous scenario,
    when i am checking the scenario using XML spy i am getting following error,
    Please help me
    <?xml version="1.0"?>
    <!-- see the documentation -->
    <SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
         <SOAP:Body>
              <SOAP:Fault>
                   <faultcode>SOAP:Server</faultcode>
                   <faultstring>Server Error</faultstring>
                   <detail>
                        <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                             <context>XIAdapter</context>
                             <code>ADAPTER.JAVA_EXCEPTION</code>
                             <text><![CDATA[
    com.sap.aii.af.ra.ms.api.DeliveryException: com.sap.aii.af.ra.ms.api.MessagingException: Could not parse XMBMessage due to invalid content type for SOAP: TEXT/HTML
         at com.sap.aii.af.ra.ms.impl.core.queue.consumer.CallConsumer.onMessage(CallConsumer.java:158)
         at com.sap.aii.af.ra.ms.impl.core.queue.Queue.run(Queue.java:916)
         at com.sap.aii.af.ra.ms.runtime.MSWorkWrapper.run(MSWorkWrapper.java:56)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
              ]]></text>
                        </s:SystemError>
                   </detail>
              </SOAP:Fault>
         </SOAP:Body>
    </SOAP:Envelope>
    when monitoring communication channel it is showing status   "request received , error occured"
    Regards
    Pradeep P N

    Hi Pradeep,
    I request u to just check in RWB, in component monitoring, the status of integration server and adapter engine.......if it is red, then ask your basis guys to remove that error................just check your comm channels, i think your comm channels are in error, if they are just edit them, save and activate them again..........i think then your this issue will be resolved.'
    I think some port information has been edited recently.
    Make sure that ur ABAP and java stack are at same patch levels after the upgrade.
    try this too
    com.sap.aii.af.ra.ms.api.DeliveryException: Exception in method process
    and this
    com.sap.aii.af.ra.ms.api.DeliveryException: Exception in method process ?
    Regards,
    Vinod.

  • Error while posting a write up for asset belonging to affiliated company

    Hi,
    I am facing an error while posting a write up for an asset which belong to an affiliated company. Error is
    Transaction type 790 not possible (posting to affiliated company)
    Message no. AA390
    I am using Transaction type 711 which is linked to 790 in custo. Kinldy let me know how to resolve this issue.
    Thanks
    Pragya

    Hi
    According to this note for document type used, we should not select the 'inter company posting' or 'enter trading partner indicator'
    but as i m doing writeup for asset belonging to affiliated company, so i need to set this indicator. the document type used is standard AA
    Is there any other way, to resolve the issue
    Thanks
    Pragya

  • Error while posting depot excise invoice

    Dear SAP Experts,
    We are continually facing the following error while posting "Depot
    Excise Invoice" on Production sever
    "Error in allocating Depot Invoice number interval not found Number
    object J_1IDEPINV"
    Message no is 8I336
    We have already maintained the number interval for the above object i.e
    J_1IDEPINV with respective series group 62.
    Here is the business process:
    1. First, we make transfer posting thr’ MB1B. We get material doc no
    2. Second, we make selection for RG23D for this material doc thr’ J1IJ.
    RG 23D register gets updated
    3. Third, we make ‘verify/post’ thr’ J1IJ itself. Here we are getting the
    error when we post it.
    Please do needful.
    Its an urgent isue
    Regards
    Tushar

    hello,
    In transaction SNRO check number range for object J_1IDEPINV. There you choose number intervals abd check number intervals.
    Regards
    Kedar Kulkarni

  • Error while activating any message mapping in IR: very strange

    hi forum i m getting an error in IR while activating any messageMapping.
    the error is too long to be posted....i m posting a few lines of that:
    •     Internal error while checking object Message Mapping MM_sdptestFileToFile | http://sdzpoc.com.test/sdptest (ZPOC_TEST, 1.0 of zpoctest); see details (CHECK_EXCEPTION)
    •     Internal error while checking object Message Mapping MM_sdptestFileToFile | http://sdzpoc.com.test/sdptest (ZPOC_TEST, 1.0 of zpoctest); see details (CHECK_EXCEPTION)
    •     /usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapdddd0cb0100311dca6090012799eddc6/source/com/sap/xi/tf/_MM_sdptestFileToFile_.java (No such file or directory (errno:2))
    •     /usr/sap/XID/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Mapdddd0cb0100311dca6090012799eddc6/source/com/sap/xi/tf/_MM_sdptestFileToFile_.java (No such file or directory (errno:2))

    Sudeep,
    Let we try this way. I'm sure you might have some existing mapping objects in IR.
    Try to change that object(Description give some name) and activate again the object.
    Reply your results whether you are getting the same error.
    One sec before changing the object just test the mapping and change the object.
    Best regards,
    raj.

  • Error while posting FB60 -

    Hi,
    I am getting the below error while posting Vendor invoice FB60. Please help me...
    Constant ! for Ledger ZWN00 does not contain any value*
    Message no. GLT2301
    Thanks
    Kishore

    Hi,
    May be the company code assignment to specified special purpose ledger have the real time posting.
    VVR

  • Error while posting sec.HighEd cess (1%) in J1iin.

    we got following error while posting excise invoice J1IIN. all excise rates/values (10%,2%,1%) are coming properly in J1iin. if we remove excise duty 1% sec-high-ed-cess, than excise accounting entries posted properly in J1iin. but excise duty 1% (sec-high-ed-cess ) is there, than problem in posting, below amount 0.10 INR is of sec-high-ed-cess.
    Balance in transaction currency
    Message no. F5702
    Diagnosis
    A balance has occurred in transaction currency 'INR' with the following details:
    Exchange rate '00', amount ' 0,10' and currency key 'INR'.
    The data in the transaction currency were transferred from the calling application.
    System Response
    Your data cannot be processed in FI.
    Procedure
    The error is probably in the calling application.
    and.....
    System failure during locking GLaccount 1001 by 21150105
    Message no. 8I076
    reply me.  Text Removed
    Edited by: Lakshmipathi on Jan 13, 2012 6:42 PM
    Please dont add such comments

    Hey,
    I have already replied to your thread for F5702 error.
    G/L account locking error occurs when two or more users try to post to the same g/L account at the same time.
    Regards,
    Brinda

  • Error while posting usint tcode f-02 in fi

    Hi all,
    I am getting an error while posting a document using t code f-02.It is allowing me to go through the 3 steps of posting a document  but while saving it gives me the following error message:
    Error accessing function module:fmfk_fikrs_read parameter:ip_fikrsp_fma_objnr
    Message no:f1030
    DIAGNOSIS:
    The application has accessed a funds management or cash management module with parameters messing or defective.
    PROCEDURE:
    Notify your system administrator.
    Hope some body would help me out.
    Thanks

    Hi,
    Not sure if this works out
    try checking img-Financial Accounting-Financial Accounting Global Settings-Company Code-Enter Global Parameters
    double click on company code and see if any thing is assigned in the feild to FM.
    regards
    genie

  • Error while Posting GR or GI

    Dear All.
    I am getting the below error while posting a Goods Receipt / Goods issue, Kindly suggest what could be wrong ??
    "You are not allowed to post manually in the substitute system
    Message no. FDM_MIRROR301
    I am trying to post the GR against a standard PO and trying to make GI against standard outbound delivery
    Best Regards,
    Santosh Kumar B V

    Hi Santosh,
    I believe you are using the FSCM - Collections module.
    This clearly looks like a program error.
    There are various SAP notes for the FDM_MIRROR errors. I have searched a few but could not make anything with number 301.
    This to me looks like a new error and you may report the same to SAP for a note.
    Thanks
    Aravind

  • Error while posting J1IS

    Hi,
    I am getting the below error while posting the J1IS with reference to the STO 351 document.
    Could you please advice?
    Error updating table J_1IEXCHDR.
    Message no. 8I308
    Regards,
    Mohd Ali.

    Check it using SM13 transaction to know the real cause of error.
    http://help.sap.com/saphelp_nw04/helpdata/en/e5/de873b35cd11d3acb00000e83539c3/content.htm
    Regards,
    S Anand

  • Error while posting IDoc

    Hi,
    i am getting the following error while posting an IDoc: Program parameters for LS XXXXXXXX 2002 have not been set. Please suggest what can be the possible reason for it and the probable solution.

    First ,
    check the partner profiles in R3,
    i.e. a logical system is defined for XI , particluar Message type is added on inbond side and selected the releavnt messge type and and process code. this is all in WE20.
    defining a logical system is in SALE.
    then ditribute u r the model in BD 64
    once every thing is OK in R3
    on PI.
    create a RFC destination of type R3 which points to R3 , try remote log-on .
    this will be used in receiver chaneel
    and check u r receiver chaneel is defined under Business system of R3, and BS refers to same client where partner profiles are defined.
    and one of the following should be in place.
    check 'apply control record from payload' if ur explictly passing Control record from mapping
    otherwise,
    check sender service and receiver service in Receiver agreement and select appropriate systems.
    Regds,
    Suresh

  • Error while posting the CREMAS03 Idoc

    Hi
    I a getting the Error while posting CREMAS03 idoc from File
    The ERROR: Status 65 ,Error in ALE Servics: Cross Company code does not exits..
    but when i cheked with the functional guys , the comany code exits..
    Any one have any idea
    SV

    Hey,
        seems you have given wrong enteries for logical system in sale or in WE20(patrner profile)
    Steps for ALE settings:-
    Steps for XI
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the R3 system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto IDX1.
         Create a new port.
         Give the port name.
         Give the client number for the R3 system.
         Select the created Rfc Destination.
    Step 3)
         Goto IDX2
         Create a new Meta data.
         Give the Idoc type.
         Select the created port.
    Steps for R3.
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the XI system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto WE21.
         Create a port under transactional RFC.(R3->XI)
         Designate the RFC destination created in prev step.
    Step 3)
         Goto SALE.
         Basic settings->Logical Systems->Define logical system.
         Create two logical systems(one for XI and the other for R3)
         Basic settings->Logical Systems->Assign logical system.
         Assign the R3 logical system to respective client.
    Step 4)
         Goto WE20.
         Partner type LS.
         Create two partner profile(one for XI the other for R3).
         Give the outbound or inbound message type based on the direction.
    Step 5)
         Goto WE19
         Give the basic type and execute.
         fill in the required fields.
         Goto IDOC->edit control records.
         Give the following values.(Receiver port,partner no.,part type and sender Partner no. and type)
         Click outbound processing.
    Step 6)
         Go to SM58
         if there are any messages then there is some error in execution.
         Goto WE02.
         Check the status of the IDOC.
         Goto WE47.
         TO decode the status code.
    Step 7)
         Not mandatory.
         Goto BD64.
         Click on Create model view.
         Add message type.
    BD87 to check the status of IDOC.
    In case if not authorized then go to the target system and check in SU53, see for the missing object
    and assign it to the user.

  • Error while posting FBS1 via BAPI

    Hi Experts,
    getting below error  while posting FBS1 via BAPI_ACC_DOCUMENT_POST
    TYPE ID                   NUMBER MESSAGE
    E   |RW                  |609   Error in document:  BKPF 10000022440GF3032010 TERCLNT303
    E   |RW                  |609   Error in document:  100000224 AC_DOC_NO
    FB03 Header values --
    Document Number 100000250        Company Code    40GF         Fiscal Year     2010
    Document Date   30.11.2010       Posting Date    30.11.2010   Period          11
    Currency  EUR
    FB03 Line item 1 ( posting key  40 )
    G/L Account     711014
    Company Code    40GF
    Amount          100,00  EUR
    Cost Center     40GF219001
    Quantity        0,000
    FB03 Line item 2 ( posting key  50 )
    G/L Account     167005
    Company Code    40GF
    Amount          100,00 EUR
    Assignment      20101130
    Text            ITEM TEXT 7
    Please tell me what i am missing in below code because of which i am getting  error  in return table
    FORM fill_header.
      CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
        IMPORTING
          own_logical_system = gd_documentheader-obj_sys.
      gd_documentheader-obj_type   = 'BKPF'.
      gd_documentheader-obj_key    = '10000022440GF3032010'.
      gd_documentheader-username   = sy-uname.
      gd_documentheader-header_txt = 'BAPI Test'.               "#EC NOTEXT
    gd_documentheader-obj_key_r  =
    GD_DOCUMENTHEADER-reason_rev =  '05' .
      gd_documentheader-comp_code  = '40GF'.
    GD_DOCUMENTHEADER-AC_DOC_NO  =  '100000224' .
      gd_documentheader-fisc_year  = '2010'.
      gd_documentheader-doc_date   = sy-datum.
      gd_documentheader-pstng_date = sy-datum.
    GD_DOCUMENTHEADER-TRANS_DATE =
    GD_DOCUMENTHEADER-VALUE_DATE =
    GD_DOCUMENTHEADER-FIS_PERIOD = '11' .
    GD_DOCUMENTHEADER-DOC_TYPE   = 'SA' .
    GD_DOCUMENTHEADER-REF_DOC_NO =
    GD_DOCUMENTHEADER-COMPO_ACC  =
      gd_documentheader-bus_act    = 'RFBU'.
    ENDFORM.                    "fill_header
    FORM fill_currencyamount.
      CLEAR T_currencyamount.
      T_currencyamount-itemno_acc   = 1.
      T_currencyamount-curr_type    = '00'.
      T_currencyamount-currency     = 'EUR'.
      T_currencyamount-amt_doccur   = -100.
      APPEND T_currencyamount.
      CLEAR T_currencyamount.
      T_currencyamount-itemno_acc   = 2.
      T_currencyamount-curr_type    = '00'.
      T_currencyamount-currency     = 'EUR'.
      T_currencyamount-amt_doccur   = '100'.
      APPEND T_currencyamount.
      CLEAR T_currencyamount.
    ENDFORM.                    "fill_currencyamount
    FORM fill_accountgl.
      CLEAR T_accountgl.
      T_accountgl-itemno_acc     = 1.
      T_accountgl-gl_account     =  '0000711014'.
      T_ACCOUNTGL-ACCT_TYPE      =  'S' .
      T_ACCOUNTGL-DOC_TYPE       =  'SA' .
    T_accountgl-DE_CRE_IND     =  'S' .
    T_accountgl-tax_code       = 'V1'.
    T_ACCOUNTGL-ACCT_KEY       =
      T_accountgl-item_text      = 'BAPI Test G/L line item'.  "#EC NOTEXT
    T_ACCOUNTGL-BUS_AREA       =
    T_accountgl-costcenter     = '40GF219001' .
    T_ACCOUNTGL-ORDERID        =
    T_ACCOUNTGL-MATERIAL       =
    T_ACCOUNTGL-QUANTITY       =
    T_ACCOUNTGL-BASE_UOM       =
    T_ACCOUNTGL-BASE_UOM_ISO   =
    T_ACCOUNTGL-PLANT          =
      T_accountgl-profIT_ctr     =  'S001'  .
    T_ACCOUNTGL-WBS_ELEMENT    =
    T_ACCOUNTGL-BILL_TYPE      =
    T_ACCOUNTGL-DISTR_CHAN     =
    T_accountgl-ac_doc_no      =
    T_accountgl-acct_type      =
    T_accountgl-doc_type       =
    T_accountgl-comp_code      =  '40GF' .
    T_accountgl-func_area      =
    T_accountgl-plant          =
    T_accountgl-fis_period     = '11' .
    T_accountgl-fisc_year      = '2010' .
    T_accountgl-pstng_date     =
    T_accountgl-value_date     =
    T_accountgl-customer       =
    T_accountgl-vendor_no      =
    T_accountgl-costobject     =
    T_accountgl-acttype        =
    T_accountgl-val_area       =
    T_accountgl-po_number      =
    T_accountgl-po_item        =
      APPEND T_accountgl  to t_accountg2 .
      CLEAR T_accountgl.
      T_accountgl-itemno_acc     = 2.
      T_accountgl-gl_account     =  '0000167005'.
    T_ACCOUNTGL-STAT_CON       =
    T_ACCOUNTGL-REF_KEY_1      =
    T_ACCOUNTGL-REF_KEY_2      =
    T_ACCOUNTGL-REF_KEY_3      =
      T_ACCOUNTGL-ACCT_TYPE      =  'S' .
      T_ACCOUNTGL-DOC_TYPE       =  'SA' .
    T_accountgl-DE_CRE_IND     =  'H' .
    T_accountgl-tax_code       = 'V1'.
    T_ACCOUNTGL-ACCT_KEY       =
      T_accountgl-item_text      = 'ITEM TEXT 7'.  "#EC NOTEXT
    T_ACCOUNTGL-BUS_AREA       =
    T_accountgl-costcenter     = '40GF219001' .
    T_ACCOUNTGL-ORDERID        =
    T_ACCOUNTGL-MATERIAL       =
    T_ACCOUNTGL-QUANTITY       =
    T_ACCOUNTGL-BASE_UOM       =
    T_ACCOUNTGL-BASE_UOM_ISO   =
    T_ACCOUNTGL-PLANT          =
    T_accountgl-profIT_ctr     =  'S001'  .
    T_ACCOUNTGL-WBS_ELEMENT    =
    T_accountgl-ac_doc_no      =
    T_accountgl-acct_type      =
    T_accountgl-doc_type       =
    T_accountgl-comp_code      =  '40GF' .
    T_accountgl-func_area      =
    T_accountgl-plant          =
    T_accountgl-fis_period     = '11' .
    T_accountgl-fisc_year      = '2010' .
    T_accountgl-pstng_date     =
    T_accountgl-value_date     =
    T_accountgl-customer       =
    T_accountgl-vendor_no      =
    T_accountgl-costobject     =
    T_accountgl-acttype        =
    T_accountgl-val_area       =
    T_accountgl-po_number      =
    T_accountgl-po_item        =
      APPEND T_accountgl  to t_accountg2 .
    ENDFORM.                    "fill_accountgl

    Hi Experts,
    getting below error  while posting FBS1 via BAPI_ACC_DOCUMENT_POST
    TYPE ID                   NUMBER MESSAGE
    E   |RW                  |609   Error in document:  BKPF 10000022440GF3032010 TERCLNT303
    E   |RW                  |609   Error in document:  100000224 AC_DOC_NO
    FB03 Header values --
    Document Number 100000250          Company Code    40GF         Fiscal Year     2010
    Document Date   30.11.2010           Posting Date    30.11.2010   Period          11
    Currency  EUR
    FB03 Line item 1 ( posting key  40 )
    G/L Account     711014
    Company Code    40GF
    Amount          100,00  EUR
    Cost Center     40GF219001
    Quantity        0,000
    FB03 Line item 2 ( posting key  50 )
    G/L Account     167005
    Company Code    40GF
    Amount          100,00 EUR
    Assignment      20101130
    Text            ITEM TEXT 7
    Please tell me what i am missing in below code because of which i am getting  error  in return table
    FORM fill_header.
      CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
        IMPORTING
          own_logical_system = gd_documentheader-obj_sys.
      gd_documentheader-obj_type   = 'BKPF'.
      gd_documentheader-obj_key    = '10000022440GF3032010'.
      gd_documentheader-username   = sy-uname
    gd_documentheader-obj_key_r  =
    GD_DOCUMENTHEADER-reason_rev =  '05' .
      gd_documentheader-comp_code  = '40GF'.
    GD_DOCUMENTHEADER-AC_DOC_NO  =  '100000224' .
      gd_documentheader-fisc_year  = '2010'.
      gd_documentheader-doc_date   = sy-datum.
      gd_documentheader-pstng_date = sy-datum.
    GD_DOCUMENTHEADER-FIS_PERIOD = '11' .
    GD_DOCUMENTHEADER-DOC_TYPE   = 'SA' .
      gd_documentheader-bus_act    = 'RFBU'.
    ENDFORM.                    "fill_header
    FORM fill_currencyamount.
      CLEAR T_currencyamount.
      T_currencyamount-itemno_acc   = 1.
      T_currencyamount-curr_type    = '00'.
      T_currencyamount-currency     = 'EUR'.
      T_currencyamount-amt_doccur   = -100.
      APPEND T_currencyamount.
      CLEAR T_currencyamount.
      T_currencyamount-itemno_acc   = 2.
      T_currencyamount-curr_type    = '00'.
      T_currencyamount-currency     = 'EUR'.
      T_currencyamount-amt_doccur   = '100'.
      APPEND T_currencyamount.
      CLEAR T_currencyamount.
    ENDFORM.                    "fill_currencyamount
    FORM fill_accountgl.
      CLEAR T_accountgl.
      T_accountgl-itemno_acc     = 1.
      T_accountgl-gl_account     =  '0000711014'.
      T_ACCOUNTGL-ACCT_TYPE      =  'S' .
      T_ACCOUNTGL-DOC_TYPE       =  'SA' .
      T_accountgl-item_text      = 'BAPI Test 1'.
    T_accountgl-costcenter     = '40GF219001' .
      T_accountgl-profIT_ctr     =  'S001'  .
    T_accountgl-fis_period     = '11' .
    T_accountgl-fisc_year      = '2010' .
      APPEND T_accountgl  to t_accountg2 .
      CLEAR T_accountgl.
      T_accountgl-itemno_acc     = 2.
      T_accountgl-gl_account     =  '0000167005'.
      T_ACCOUNTGL-ACCT_TYPE      =  'S' .
      T_ACCOUNTGL-DOC_TYPE       =  'SA' .
      T_accountgl-item_text      = 'ITEM TEXT 7'.
    T_accountgl-comp_code      =  '40GF' .
    T_accountgl-fis_period     = '11' .
    T_accountgl-fisc_year      = '2010' .
      APPEND T_accountgl  to t_accountg2 .
    ENDFORM.                    "fill_accountgl

Maybe you are looking for