The typical problem with BAPI_ACC_DOCUMENT_POST

Hi all!
Just my first post in the forum.
I'm using the BAPI_ACC_DOCUMENT_POST to generate an accountable document. As I've seen with a lot of people, the bapi is succesfully executed, but no doc. is created.
Can anyone have a look on my code and try to guide me through the right way to have my doc?
--- doc_head TYPE BAPIACHE09 ---
doc_head-obj_type   = 'BKPFF'.
CONCATENATE SY-SYSID 'CLNT' SY-MANDT INTO
                      DOC_HEAD-OBJ_SYS.
doc_head-obj_key    =  '$'.
doc_head-COMP_CODE  = P_BUKRS.
doc_head-DOC_TYPE   = 'SA'.
doc_head-PSTNG_DATE = P_BUDAT.
doc_head-FISC_YEAR  = sy-datum(4). "Periodo liquidación
doc_head-FIS_PERIOD = sy-datum+4(2).
doc_head-USERNAME   = SY-UNAME.
doc_head-DOC_DATE   = sy-datum.
doc_head-BUS_ACT    = 'RFBU'.
--- w_bseg TYPE TABLE OF BAPIACGL09 ---
--- t_cur_am TYPE TABLE OF BAPIACCR09 ---
w_bseg-ITEMNO_ACC = '0001'.
w_bseg-GL_ACCOUNT = '0006230000'.
w_bseg-ALLOC_NMBR = P_REF.
w_bseg-stat_con   = 'S'.
w_bseg-COSTCENTER = P_COST_CENTER.
w_bseg-TAX_CODE = 'S0'.
APPEND w_bseg.
CLEAR w_bseg-COSTCENTER.
t_cur_am-ITEMNO_ACC = '0001'.
t_cur_am-CURRENCY   = 'EUR'.
t_cur_am-AMT_DOCCUR = '100'.
APPEND t_cur_am.
w_bseg-ITEMNO_ACC = '0002'.
w_bseg-ITEM_TEXT  = TEXT-001.
w_bseg-GL_ACCOUNT = '0004000900'.
w_bseg-ALLOC_NMBR = P_TEXT.
w_bseg-stat_con   = 'H'.
APPEND w_bseg.
Llenar importes
t_cur_am-ITEMNO_ACC = '0002'.
t_cur_am-CURRENCY   = 'EUR'.
t_cur_am-AMT_DOCCUR = '100'.
APPEND t_cur_am.
CALL FUNCTION 'BAPI_ACC_DOCUMENT_POST'
  EXPORTING
    DOCUMENTHEADER          = doc_head
  CUSTOMERCPD             =
  CONTRACTHEADER          =
  IMPORTING
    OBJ_TYPE                = obj_type
    OBJ_KEY                 = obj_key
    OBJ_SYS                 = obj_sys
  TABLES
    ACCOUNTGL               = w_bseg
   ACCOUNTRECEIVABLE       =
  ACCOUNTPAYABLE           =
   ACCOUNTTAX              =
    CURRENCYAMOUNT          = t_cur_am
  CRITERIA                 =
  VALUEFIELD               =
  EXTENSION1               =
    RETURN                  = t_ret
  PAYMENTCARD              =
  CONTRACTITEM             =
  EXTENSION2               =
  REALESTATE               =
b_wait = 'X'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
  EXPORTING
    WAIT          = b_wait
  IMPORTING
    RETURN        = b_ret.
I get my "Document XXXXXXXXXX was Successfully created" but no BKPF record is created on the database. Any ideas?
Thank you very much!
Message was edited by: Angel Garcia

Hi Angel,
1. U code must be absolutely right.
2. The problem is with this general bapi.
3. I also faced the same problem,
   but there is no solution for this
    on SDN.
4. After posting the bapi, (also using commit)
   the message says, Docuement xXX created,
  but actually there is no document
   in tables.
5. Even the Number Range is incremented,
   but no document.
6. Its really a mystery for me.
regards,
amit m.

Similar Messages

  • HI i have macbook pro with OSX 10.8. I am facing typical problem with Wi- Fi , in school wi-fi it does'nt connects to http sites and connects only https  but in home wi-fi it connects to all all http and https sites. How fix this problem as I am new this

    HI i have macbook pro with OSX 10.8. I am facing typical problem with Wi- Fi , in school wi-fi it does'nt connects to http sites and connects only https as no security/proxy settings done but in home wi-fi it connects to all  http and https sites. How to fix this problem as I am new this operating system. Please any one help me in this as I have installed Delicious Library which is not working in school becoz it searches amzon http site.

    I would imagine that at school, you're required to connect through an HTTP proxy.
    From the menu bar, select
     ▹ System Preferences ▹ Network
    If the preference pane is locked, click the lock icon in the lower left corner and enter your password to unlock it. Then click the Advanced button and select the Proxies tab. Enter the proxy settings given to you by the network administrator. Click OK and then Apply.
    You may wish to create separate network locations for home and school. See the built-in help for instructions.

  • After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    After I updated lion to 10.7.4, app store does not recognize my ID APPLE and it unable to connect me to app store in order to update/download apps? What have I to do? I have the same problem with mac mini e mac book air. Please help me!

    Your advice did not help me. I also installed 10.7.4 combo but the situation is the same.
    my internet connection is ok, mail is ok, but app store after 3 resets does not recognize my ID and it says "connection is not possible". Why? I have the same problem in both my mac mini late 2009 and mac book air 2010? Is it a problem of 10.7.4 update? I have to solve this problem and how can i return to 10.7.3 if my last backup was not with 10.7.3???thank you for your kind collaboration...

  • I can't send emails from Mail. I have three different accounts set up and have the same problem with all. The mail just sits in my outbox. All worked fine until Yosemite upgrade. Recent update has not fixed problem.

    I can't send emails from Mail. I have three different accounts set up and have the same problem with all. The mail just sits in my outbox. All worked fine until Yosemite upgrade. Recent update has not fixed problem.

    I have been experiencing the same problem. My mail app won't even open on my Late 2011 Macbook Pro. It will show as open, but the app will never actually show up.

  • What is the exact problem with this file?

    Hi all,
    There is an old form , which was not in use from many days.
    Now when we tried to run the form, i got the error saying "FRM-40734:Internal Error:Pl/SQL error occured.", in the login form.
    When i tried to open the fmb file in Oracle Forms Builder 6i, i got the following error:
    FRM-10102: Cannot attach PL/SQL library d2kwutil. This library attachment will be lost if the module is saved., but the fmb file got open.
    The login button has the following code:
    DECLARE
      UNAME VARCHAR2(30);
      --USER_ID PARAMLIST;
      V_USER APUSERMA.USER_NAME%TYPE;
      V_PASSWED APUSERMA.USER_PASSWD%TYPE;
    BEGIN
    select user_CD INTO :GLOBAL.USER_ID from apuserma 
    where user_CD = :TI_USER_NAME AND user_PASSWD = :IT_USER_PASSWD
    AND SYSDATE BETWEEN USER_VALID_FRM AND USER_VALID_TO;
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    :global.compname := :compname;
    compnm(:compname);
    --USER_ID := CREATE_PARAMETER_LIST('USER_id_NAME');
    call_form('Forms\MAIN_SCREEN',hide,DO_REPLACE);
    exception
      when no_data_found then
      MESSAGE('Incorrect Username or Password.  Please Re-Enter');
      message(' ');
      RAISE FORM_TRIGGER_FAILURE;
    END;
    EXIT_FORM;
    When i tried to compile, i got error saying ,
    Error 201 at line 10, column 28
    identifier 'WIN_API_ENVIRONMENT.READ_REGISTRY' must be declared.
    I am not getting to know What is the exact problem with this file?
    Help me with this please.
    Thank You.
    Oracle forms builder 6i.
    Oracle 9i.

    Vijetha wrote:
    I also want to know what is the use of  win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername') ??
    What does it do??
    If i comment the following line , will it be a problem??
    :global.user_id  := substr(win_api_environment.read_registry('HKEY_LOCAL_MACHINE\system\currentcontrolset\control\computername\computername','computername'),1,10);
    Because i commented the above line & compiled, so it is not giving any error now.
    So please tell me what win_api_environment.read_registry does??
    it's read windows registry value. So, no problem if you comment it.
    Thanks

  • I have a problem with iphoto (have a mac book pro): the icon in the dock appears with a question mark, and the application is gone!!! Can someone tell what's going on? Yesterday I had the same problem with itunes

    I have a problem with iphoto (have a mac book pro): the icon in the dock appears with a question mark, and the application is gone!!! Can someone tell what's going on? Yesterday I had the same problem with itunes: I downloaded the last version (it's free), but I cannot do the same with iphoto, and more important: I need to know what is happening!!! Please help me!

    Applications should not disappear all by themselves.
    If they are then that coud indicate serious problems with your hard drive.
    Backup everything up as quickly as possible.
    Using Disk Utility verify your system disk.
    Allan

  • Hi, I have the following problem with Time Capsule: La imagen del disco de copia de seguridad "/Volumes/Data/MacBook Pro de Carlos.sparsebundle" ya está en uso. Please your comments to solve this problem, i can't made a backup. Thanks.

    Hi, I have the following problem with Time Capsule: La imagen del disco de copia de seguridad “/Volumes/Data/MacBook Pro de Carlos.sparsebundle” ya está en uso. Please your comments to solve this problem, i can't made a backup. Thanks.

    Try Here  >  http://pondini.org/TM/Time_Capsule.html
    Perhaps P 2  >  Time Machine could not complete . . . sparsebundle could not be accessed. (Error 109).

  • Recently while we were overseas, it was time to renew our Adobe Convertor. We did so but forgot that our card number had changed due to the Christmas problem with Target. So we were denied. Could webe reinstated?

    Recently while we were overseas, it was time to renew our Adobe Convertor. We did so but forgot that our card number had changed due to the Christmas problem with Target. So we were denied. Could webe reinstated?

    Could you provide the name of the service that you subscribed to?  Adobe ExportPDF, PDF Pack, or anything else?
    I can move this post to an appropriate forum so that you can get help.

  • Almost all of the same problems with Thunderbolt HTC

    I have experienced most of the same problems with my phone as the ones indicated on this website.  I have been to the Verizon Store on three separate occasions seeking help, with  almost no solution, I guess not the one I was looking for, however now reconnected.   . 
    I have to give a shout-out to Tim in the Verizon Wareham, MA store, who has displayed  incredible  patience and took the time to hopefully  fix the phone and then explain my options.   The final result was to get a replacement and ship out the defective phone, 
    It is  employees such as Tim who make  Verizon a world class communication company. 
    Very disappointed with Verizon these days, poor quality cell service and poor quality cell products in exchange for huge profits.

    I have also had the same problems that people are posting.  I also have had several phone calls to Customer Service with no luck.  I stopped in a store in Phoenix when I was traveling last week and I was told I should try to resetting my phone to factory settings. I was told that as long as I log back into my Gmail account that all of the apps I downloaded previously would be available to me. So I took the plunge and reset my phone.  Yes it is working great. I was surprised to find some of my downloaded music that had mysteriously disappeared suddenly reappeared.  The bummer, I can't seem to figure out how I can access the apps I previously downloaded. I only care about the ones I paid for. 

  • HT204380 i have an iphone 4 which i purchased from dubai. this handset has facetime blocked on it . now i use the handset in india and want to use facetime on it . how can i activate facetime on my handset. i am having the same problem with my 4s i got fr

    The query i have is that ,, i have an iphone which i purchased from dubai . facetime was blocked on it when i purchased it . however now i use the phone in india and i want to use facetime on it .
    i wanted to know if there is any way i can activate facetime on it .
    i am having the same problem with the 4s i purchased from riyadh .

    You can't. FaceTime has been permanently removed from your phone, there is no way to add it back. Next time, buy your phone in India.
    BTW: Your warranty & support will only be valid in the UAE.

  • Can't get CF11 to download free trial for students.  Anyone having the same problem with Adobe's site?

    Can't get CF11 to download free trial for students.  Anyone having the same problem with Adobe's site?

    Hi,
    Please download it from http://www.adobe.com/cfusion/tdrc/index.cfm?product=coldfusion&promoid=DJDUK use your Adobe ID and password to login and download CF11.
    Let me know in case you face any issue while downloading it, if you get any error try another browser.
    Thanks,
    Priyank

  • Is there a fix for the WIFI problem with Lion? How can I get Lion off of my Mac?

    Is there a fix for the WIFI problem with Lion? How can I get Lion off of my Mac?

    gmiller0 wrote:
    My mac has 10.7.3 and will not connect to wifi after it wakes up. Have contacted AppleCare but the problem cannot seem to be resolved.. I guess this is a major issue with Lion:(
    What model of Mac?  I have a MBP running 10.7.3 and do not have that issue.  From the other couple of posts I've seen about it, it seems to be maybe an issue with some iMacs?  Have your tried searching the Lion or iMac forums for similar issues, just to see if anyone has hit on why it is happening?

  • After updating my 4s to ios6, I'm having the same problems with wi-fi switching to cellular on it's own and running up my data usage.....anyone else having this problem?

    After updating my 4s to ios6, I'm having the same problems with wi-fi switching to cellular on it's own and running up my data usage.....anyone else having this problem?

    The iPhone is DESIGNED to switch to cellular data when asleep, unless it's connected to a power source, in which case it will stay logged onto the WiFi network.  iPhones have ALWAYS behaved this way.
    Either turn cellular data off at night, or leave your phone connected to a power source to continue the WiFI.

  • Frustratingly, since I upgraded to Yosemite 10.10, I too am having the worst problems with WiFi dropping out. I've never had this problem before on my iMac 27-inch mid 2011 model. Turning WiFi off and then back on again sometimes works. Help please.

    Frustratingly, since I upgraded to Yosemite 10.10, I too am having the worst problems with WiFi dropping out. I've never had this problem before on my iMac 27-inch mid 2011 model. Turning WiFi off and then back on again sometimes works. Help please. I've already tried a lot of your suggested fixes, but without success. Why hasn't Apple Fixed this?

    Please test after taking each of the following steps that you haven't already tried. Stop when the problem is resolved. Back up all data before making any changes.
    Step 1
    Take the applicable steps in this support article. The Wireless Diagnostics program generates a large file of information about your system, which would be used by Apple Engineering in case of a support incident. Don't post the contents here.
    Step 2
    Disconnect all USB 3 devices. If you don't know which are USB 3, disconnect all USB devices except keyboard and mouse.
    Step 3
    If you're not using a wireless keyboard or trackpad, disable Bluetooth by selecting Turn Bluetooth Off from the menu with the Bluetooth icon. If you don't have that menu, open the Bluetooth preference pane in System Preferences and check the box marked Show Bluetooth in menu bar. Test. If you find that Wi-Fi works better with Bluetooth disabled, you should use the 5 GHz Wi-Fi band. Your router may not support it; in that case, you need a new router.
    Step 4
    Open the Energy Saver pane in System Preferences and unlock the settings, if necessary. Select the Power Adapter  tab, if there is one. Uncheck the box marked
              Wake for Wi-Fi network access
    if it's checked.
    Step 5
    Open the Network pane in System Preferences and make a note of your settings in the Wi-Fi service. It may be helpful to take screenshots of the various tabs in the preference pane. If the preference pane is locked, unlock it by clicking the padlock icon and entering your administrator password. Delete Wi-Fi from the service list on the left by selecting it and clicking the minus-sign button at the bottom. Then recreate the service by clicking the plus-sign button and following the prompts.
    Step 6
    In the Wi-Fi settings, select
              Advanced... ▹ TCP/IP ▹ Configure IPv6: Link-local
    Click OK and then Apply.
    Step 7
    Reset the System Management Controller.
    Step 8
    Reset the PRAM.
    Step 9
    Launch the Keychain Access application. Search for and delete all AirPort network password items that refer to the network. Make a note of the password first.
    Step 10
    Make a "Genius" appointment at an Apple Store, or go to another authorized service center.

  • Having the same problem with Adobe Story. Getting a warning that says "Failed to get user preference

    Having the same problem with Adobe Story. Getting a warning that says "Failed to get user preferences, lost the internet connection." Any help would be greatly appreciated. Phone support was useless

    Yes, me, just now! I was thinking it was because I am on a brand new computer and I did something wrong when I put itunes on it. But now I am thinking it is an itunes issue, not mine.

Maybe you are looking for

  • Pages '09: Can't Embed Link to Map in PDF

    I'm really stumped. Links to web pages that I embed in my Pages publishing docs operate as expected when I export the document to PDF. However, I'm having no success with links to Google, Mapquest or Yahoo maps. The links are live in Pages, but are d

  • How can you create an instance of a class using ClassLoader given only

    the class name as a String. I have the code below in the try block. Class myTest = this.getClass().getClassLoader().loadClass("Testclass"); Object obj = myTest.newInstance(); String className = obj.getClass().getName();I don't want to typecast the cl

  • How to create a playlist in a apsx page

    Hi. I have an aspx page that play a swf movie. I need to automatically play several swf in loop. How can I do that? I set the name of file in this way: quote: <param name="movie" value="filename.swf" /> Can i set multiple name in this way? Thanks

  • Can I capture crystal report user input in my web application?

    Folks, I have a report that has a input paramter named "AccountKey". Crystal report launches its own input parameter capture screen where user can type in the AccountKey value and hit OK button. Subsequently the crystal report gets renedred in crysta

  • SAX Parser parses half the tag randomly

    Hello, I have a SAX parser which parses an XML <edc:EngagementStartDate>2004-06-10</edc:EngagementStartDate>. Randomly,the parser returns "200" as the parsed character data. This tag is in row no.231 in the XML.If i move this row to row no.230 or 232