BDC transaction "The function is not possible"

Dear Experts,
I have made a BDC transaction program according to recording from SHDB in order to have batch transaction for FB50.
However, when I run the program. It shows an error "The function is not possible". But when I press the "Save" button manually, the function passed and result is saved. Just do not know what happens.
report YFB50 no standard page heading line-size 255.
include bdcrecx1.
type-pools : TRUXS.
data : rawdata type TRUXS_T_TEXT_DATA.
parameters: sfile TYPE localfile default 'C:\fb50.txt'.
parameters: plant like BKPF-BUKRS default '1000'.
data: pfile type string.
data: post_date(8) type c.
data: record_count(2) type c.
data: v_HKONT(19) type c.
data: v_SHKZG(19) type c.
data: v_WRBTR(19) type c.
data: v_SGTXT(19) type c.
data: v_KOSTL(19) type c.
***    DO NOT CHANGE - the generated data section - DO NOT CHANGE    ***
*   If it is nessesary to change the data section use the rules:
*   1.) Each definition of a field exists of two lines
*   2.) The first line shows exactly the comment
*       '* data element: ' followed with the data element
*       which describes the field.
*       If you don't have a data element use the
*       comment without a data element name
*   3.) The second line shows the fieldname of the
*       structure, the fieldname must consist of
*       a fieldname and optional the character '_' and
*       three numbers and the field length in brackets
*   4.) Each field must be type C.
*** Generated data section with specific formatting - DO NOT CHANGE  ***
data: begin of record occurs 0,
* data element: HKONT
        HKONT(010),
* data element: SHKZG
        SHKZG(007),
* data element: WRBTR
        WRBTR(017),
* data element: SGTXT
        SGTXT(050),
* data element: KOSTL
        KOSTL(010),
      end of record.
*** End generated data section ***
start-of-selection.
pfile = sfile.
concatenate sy-datum+6(2) sy-datum+4(2) sy-datum+0(4) into post_date.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
     FILENAME                = pfile
TABLES
     DATA_TAB                = rawdata
EXCEPTIONS
     CONVERSION_ERROR        = 1
     FILE_OPEN_ERROR         = 2
     FILE_READ_ERROR         = 3
     INVALID_TYPE            = 4
     NO_BATCH                = 5
     UNKNOWN_ERROR           = 6
     INVALID_TABLE_WIDTH     = 7
     GUI_REFUSE_FILETRANSFER = 8
     CUSTOMER_ERROR          = 9
     OTHERS                  = 10.
IF SY-SUBRC <> 0.
     WRITE:/ 'SY-SUBRC:', SY-SUBRC.
ENDIF.
CALL FUNCTION 'TEXT_CONVERT_CSV_TO_SAP'
EXPORTING
     I_FIELD_SEPERATOR = ';'
     I_TAB_RAW_DATA = rawdata
TABLES
     I_TAB_CONVERTED_DATA = record
EXCEPTIONS
     CONVERSION_FAILED = 1
     OTHERS = 2.
perform bdc_dynpro      using 'SAPMF05A' '1001'.
*Input header information
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
*Document Date
perform bdc_field       using 'ACGL_HEAD-BLDAT'
                              post_date.
*Posting Date
perform bdc_field       using 'ACGL_HEAD-BUDAT'
                              post_date.
perform bdc_field       using 'BDC_OKCODE'
                              '/ECCDE'.
perform bdc_dynpro      using 'SAPLACHD' '1000'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ENTR'.
*Company Code
perform bdc_field       using 'BKPF-BUKRS'
                              plant.
perform bdc_dynpro      using 'SAPMF05A' '1001'.
*Input header information
perform bdc_field       using 'BDC_OKCODE'
                              '/BU'.
*Document Date
perform bdc_field       using 'ACGL_HEAD-BLDAT'
                              post_date.
*Posting Date
perform bdc_field       using 'ACGL_HEAD-BUDAT'
                              post_date.
*Input item text
loop at record.
*write sy-tabix to record_count.
*concatenate 'ACGL_ITEM-HKONT(' record_count ')' into v_HKONT.
*concatenate 'ACGL_ITEM-SHKZG(' record_count ')' into v_SHKZG.
*concatenate 'ACGL_ITEM-WRBTR(' record_count ')' into v_WRBTR.
*concatenate 'ACGL_ITEM-SGTXT(' record_count ')' into v_SGTXT.
*concatenate 'ACGL_ITEM-KOSTL(' record_count ')' into v_KOSTL.
perform bdc_field       using v_HKONT
                              record-HKONT.
perform bdc_field       using v_SHKZG
                              record-SHKZG.
perform bdc_field       using v_WRBTR
                              record-WRBTR.
perform bdc_field       using v_SGTXT
                              record-SGTXT.
perform bdc_field       using v_KOSTL
                              record-KOSTL.
endloop.
perform bdc_transaction using 'FB50'.
Here is my input:
206090203;H;41.74;abc;MISHK
206090203;H;14.36;abc;FACHK
206100100;S;41.74;def;MISHK
206070100;S;14.36;def;FACHK
Regards,
Cato

Make your LOOP.... ENDLOOP... Like this
LOOP AT RECORD.
perform bdc_dynpro      using 'SAPMF05A' '1001'.
*Input header information
perform bdc_field       using 'BDC_OKCODE'
                              '/00'.
*Document Date
perform bdc_field       using 'ACGL_HEAD-BLDAT'
                              post_date.
*Posting Date
perform bdc_field       using 'ACGL_HEAD-BUDAT'
                              post_date.
perform bdc_field       using 'BDC_OKCODE'
                              '/ECCDE'.
perform bdc_dynpro      using 'SAPLACHD' '1000'.
perform bdc_field       using 'BDC_OKCODE'
                              '=ENTR'.
*Company Code
perform bdc_field       using 'BKPF-BUKRS'
                              plant.
perform bdc_dynpro      using 'SAPMF05A' '1001'.
*Input header information
perform bdc_field       using 'BDC_OKCODE'
                              '/BU'.
*Document Date
perform bdc_field       using 'ACGL_HEAD-BLDAT'
                              post_date.
*Posting Date
perform bdc_field       using 'ACGL_HEAD-BUDAT'
                              post_date.
*Input item text
**loop at record.
*write sy-tabix to record_count.
*concatenate 'ACGL_ITEM-HKONT(' record_count ')' into v_HKONT.
*concatenate 'ACGL_ITEM-SHKZG(' record_count ')' into v_SHKZG.
*concatenate 'ACGL_ITEM-WRBTR(' record_count ')' into v_WRBTR.
*concatenate 'ACGL_ITEM-SGTXT(' record_count ')' into v_SGTXT.
*concatenate 'ACGL_ITEM-KOSTL(' record_count ')' into v_KOSTL.
perform bdc_field       using v_HKONT
                              record-HKONT.
perform bdc_field       using v_SHKZG
                              record-SHKZG.
perform bdc_field       using v_WRBTR
                              record-WRBTR.
perform bdc_field       using v_SGTXT
                              record-SGTXT.
perform bdc_field       using v_KOSTL
                              record-KOSTL.
**endloop.
perform bdc_transaction using 'FB50'.
ENDLOOP.
Now should work fine..

Similar Messages

  • Posting with transaction type 160 is not possible at MR8M

    MODERATOR:  Do not post (or request) email address or links to copyrighted or confidential information on these forums.  If you do, the thread will be LOCKED and all points UNASSIGNED.  If you have some information, please consider posting it to the [Wiki|https://wiki.sdn.sap.com/wiki/display/ERPFI/Home] rather than sharing via email.  Thank you for your assistance.
    Hi All,
    We raised  a PO w.r.t CWIP asset and posted GRN (MIGO - Transaction typr:100) and Invoice (MIRO).
    Here, Invoice posted wrongly, So we are trying to reverse the invoice with MR8M (which is posted thru MIRO).
    But system populating one message as per the following:
    Posting with transaction type 160 is not possible here, see long text
    Message no. AAPO 177
    Diagnosis:
    Transaction type 160 has a depreciation limitation, although posting is not mandatory in all of the depreciation areas entered However, it is not possible to select depreciation areas in the current transactions.
    Procedure:
    Check the specification of transaction type 160 or use transaction MR8M to enter the transaction
    Please help
    Sairavi
    kumarfi9gmailcom

    Welcome to the forum.
    As a newbie you should understand the forum rules where you are not suppose to post any basic or repeated question.  To avoid this, you should make a search here
    [Forum Search|http://forums.sdn.sap.com/search!default.jspa?objID=f327]
    Type the same error text in Search Terms so that you will find the solution.
    thanks
    G. Lakshmipathi

  • Popup saying RTC functions are not possible

    Hi,
    i have portal ep6 sp10. After my server restart, i log on with an user id, and logoff. and When i login agian..the popup comes up and says that the user is logged on some where else, thus the Real time collaboraion functions are not possible. But i have successfully logged off previously.
    Any one ran into this kind of scenario. Can you point me in right direction..I was guessing that previous logoff didn't kill the session. Where can i track the session of an user. Any suggestions are appreciated..
    thanks
    Chiru.

    Chiru -
    You can check whether your user has a session open in the Visual Admin console.  Navigate to Server -> Services -> Security Provider -> Login Sessions.
    If needed, you can terminate sessions by clicking on the pencil to change to write mode and them selecting the session and clicking on the Terminate Session button.
    Enjoy!
    Kyle

  • Adobe Acrobate XI and SecCommerce SecSigner have a problem during signing of a document, creating/verification of the signature is not possible - solutions?

    Adobe Acrobate XI and SecCommerce SecSigner have a problem during signing of a document, creating/verification of the signature is not possible - solutions? SecSigner is not responding.

    Well, I contacted SecCommerce about the issue, the response was, that I should sign the file later (afterwards). This is a solution, but not the best in my opinion.
    When I sign the document the SecSigner window/Java window appears and freezes. Adobe is not responding. I have to terminate Adobe because the program is not responding.
    I only found this support website, so I have realized that this is a User 2 User site, but it was a try to get some help.

  • I installed First time Photoshop CS5 on my new PC (operation system windows 8.1, 64 bit). Sie prpram runs without problems so far, only the update is not possible.

    Bei aktalisierung erfolgt das download, nach ende Download kommt Fehlermeldung fehler beim Download (Installation nicht möglich, Versuchen Sie es später noch einmal.
    Kennt jemand das Problem, was kann ich tun?
    Harald Bässle
    Emailaddresse: [email protected]

    Hello,
    I installed the newest Application Manager some updates seems to be installed now but extension manager CS5 5.0 update is not successful > error code U43M1D207. What I must do?
    I this the right way t answer?
    Whating for reply
    Thanks
    Harald
    Von: R_Kelly 
    Gesendet: Freitag, 29. August 2014 03:41
    An: Harald Bässler
    Betreff:  I installed First time Photoshop CS5 on my new PC (operation system windows 8.1, 64 bit). Sie prpram runs without problems so far, only the update is not possible.
    I installed First time Photoshop CS5 on my new PC (operation system windows 8.1, 64 bit). Sie prpram runs without problems so far, only the update is not possible.
    created by R_Kelly <https://forums.adobe.com/people/R_Kelly>  in Photoshop for Beginners - View the full discussion <https://forums.adobe.com/message/6683157#6683157>

  • IPad constantly reboots every 2-3 minutes, after full recovery is not activated to  wi-fi, and Itunes - for 20 days, Itunes says that the activation was not possible because the server is not available try again later. Ipad under warranty, but he was more

    IPad constantly reboots every 2-3 minutes, after full recovery is not activated to  wi-fi, and Itunes - for 20 days, Itunes says that the activation was not possible because the server is not available try again later. Ipad under warranty, but he was more than 6 months, so please call customer service apple can not. by DFU also restored Official Ipad bought in a store in Russia. When buying activated immediately.  IMEI 013311005943507. Help please! the official service Moscow  representation FDA ipad offer to send in the U.S. for $ 500!

    Hello this is happening to us also (minus the Bluetooth speaker).  We can't figure out what is causing the data usage.  I turned off mobile data as soon s I activated the device, and got the message that unless I am connected to WiFi.....(that is exactly what I wanted). We watched Netflix for about three hours, then the alerts started.  Like you we have many devices connected and never used over 2GB now all of a sudden we have used it in a matter of hours.  My husband called Verizon  and got the usual doubting Thomas response.  I understand that they don't know my device settings.  So over the phone we check all the settings and turned  off every possible culprit eating up the data and end the call.  By now I have purchased another gig for the month!  Assured we are NOT using mobile data, we continue on the IE path to bliss.  HA!  A few hours later I check the mobile data usage on the Verizon website and that darn thing is still using data.  After two more phone calls and two VERY uneventful trips to the local store we were told to take out the sim card.  This has stopped the data usage, but it defeats the purpose of having the data plan.  I could have just stuck with my Surface.  Verizon sent us a new sim card.  Its been installed and I have set my homepage to Verizon mobile data usage (just kidding) but I am on that site a lot.   I am surprised at the number of complaints about this device.  When we called the Verizon support acted as though this was the first time they had heard about this.   Loved your post, you should write for a living.

  • The sleep/wake function would not show in general to turn it on. I have a Targus case but the function will not work. What's going on?

    The sleep/wake function would not show in general to turn it on. I have a Targus case but the function will not work? The place it should be their is. Auto lock,  Password lock,  and Restrictions

    Keirosform wrote:
    The sleep/wake function would not show in general to turn it on.
    Ther is no "sleep/wake" setting in Settings > General.
    Auto lock,  Password lock,  and Restrictions
    Yes, these are the only three settings..
    I have a Targus case but the function will not work?
    What function? It won't go to sleep?
    Press the Power button on top. Does it sleep?

  • After updating to V 15.0 I have the issue that suddenly many but not all of the functions do not work anymore. Menues and download links do not work.

    I have updated my firefox to version 15.0. After this I have the effect that at some unspecified time during use many of the functions stop working. Menu's do not open, download links do not work anymore and so on. Opening new tab's or windows still works. Links on pages partly work partly not. Copy and paste does not work anymore on webpages. It takes ending the firefox process and restarting to correct the issue until it happens again. I have those effects on totally different webpages. At this time it happens every time after I start Firefox but not right away. Firefox first works for some time and then it suddenly doesn't anymore without me having done anything special

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • The function is not available under the responsibility.

    Hi,
    I have developed a discoverer report in apps environment for displaying top 10 items.
    Then, I rcreated a function, for the report.
    Assigned function to menu.
    Assigned menu to XX responsibility.
    When I enter into the XX responsibility and try to access the report, the following message is getting displayed.
    The XXXXX function is not available under the XX responsibility.
    But if I log in to the Discoverer viewer edition, I could see the report and the results.
    Can somebody explain me why the above error message is thrown?
    T&R
    Balu.

    Does this responsibility has the privileges for the plus usage ?
    Login to the discoverer administrator and go to the privileges settings, search for that responsibility and set it's plus/desktop privileges.

  • Fire Fox no longer applies my UN and PW when I open a site. The function is not enabled. All PS are still showing in tools, options.

    I have several site that have User names and Pass Words assigned and saved in tools, options. Fire Fox no longer applies these when I open the site. When I look at tools, options the "Remember passwords for sites" is not enabled. How do I re enable this function.
    This happened after a bout with some malware from a program called Torch.

    Do you see this Torch program in the Windows Control Panel or are there other programs that were installed recently?
    *Control Panel > Programs > Programs and Features > Uninstall or change a program
    *Click the Installed column to sort by this heading
    Do a malware check with several malware scanning programs on the Windows computer.<br>
    Please scan with all programs because each program detects different malware.<br>
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender: Home Page:<br>http://www.microsoft.com/windows/products/winfamily/defender/default.mspx
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    Your System Details List shows that you have a user.js file in the profile folder to initialize prefs each time Firefox starts.
    The user.js file is only present if you or other software has created this file and normally it wouldn't be there.
    You can check its content with a plain text editor (right-click: Open with) if you didn't create this file yourself.
    The user.js file is read each time Firefox is started and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    Delete a possible user.js file and numbered prefs-##.js files and rename (or delete) the prefs.js file to reset all prefs to the default value including prefs set via user.js and prefs that are no longer supported in the current Firefox release.
    See also:
    *http://kb.mozillazine.org/Preferences_not_saved

  • I would like to know how to send a presentation from keynote of may IMAC to my IPAD. The problem is that I have Iwork09 and in the IPAD is not possible to open it because it says that it can not open Iwork 09. So how can I do it?

    Quisiera saber como pasar una presentación de mi IMAC de keynote a IPAD keynote, porque cuando la mando por email y trato de abrirla dice que no se puede abrir documentos de Iwork 09. Que hago??? Estoy deseperada porque tengo que hacer mi presentación. Gracias por la ayuda.
    Lissette

    Numbers for iPad will not allow me to import my Numbers '08 worksheets into it.  Ironically, Numbers for iPad will import .xls files.  So, in Numbers '08 I exported to XLS.  Transferred it to my iPad, and opened it with Numbers for iPad. 
    Seeing as how Apples applications for iPad are pretty limited, I'm guessing you can export your Keynote presentation to PPT and then import the PPT into Keynote for iPad; and that any loss you experience in exporting your presentation can't be played on Keynote for iPad anyway...

  • Multiple selection in the ALV is not possible after system upgrade

    Hi Colleague,
    I had been using an ALV, which was performing as desired before, but recently we had a system upgrade to NW7.0 and after that in this ALV multiple selection of records/rows is not allowed.
    The colleagues who upgraded the system suggested that this may be because this ALV is instantiated at many places. I would request you to kindly provide a solution for the same ASAP, as I am not able to proceede ahead.
    Warm regards,
    Roopesh

    Hi all,
    Thanks for your replies, I had figured out the actual problem. The reason was, the referance of the selected rows was lost as I was doing bind elements to the context after moving to wddomodify.
    So I figured out an alternative solution to avoid binding on selection of records.
    Best regards,
    Roopesh
    Edited by: Roopesh Dolle on Apr 14, 2011 7:04 AM
    Edited by: Roopesh Dolle on Apr 14, 2011 7:05 AM

  • IPad 2 playing of all music videos in the folder is not possible. You can play a music video (all purchased from iTunes) but once is finished you have to manually select another one. This defeats the whole concept of having a music video library

    How could we play all music videos within the music folder in the iPad2 ? In other words, select all, choose random, and click play and all music videos will automatically play upon completion of the one been viewed without the user having to deselect another video manually (annoying interrupt).
    Currently you have to choose each music video and upon completion choose the next one manually. That defeats the whole concept of a music video library.
    This does not happen on previous iPad or MacBook Pro iTunes!!!!!
    Very annoying.
    Thanks,
    WMR

    You can try leaving feedback : http://www.apple.com/feedback/ipad.html

  • Discount Groups via the SDK. Not possible???

    Hi All..
    Can it really be true that you can't Create Discount Groups (Inventory > PriceList > Special Prices > Discount Groups) using the SDK???

    Hi Rasmus,
    It looks like you're right. I can only see special prices (OSPP) exposed via SDK and not OSPG.
    Hope it helps,
    Adele

  • Updating the software is not possible

    Dear HP,
    Please help me i cant update my windows 8 to windows 8.1,please help me i just have time till 6:30 PM..i have updated it once and it was working very fine but suddenly my laptop got with a problem that is whenever i switch off the laptop the power key's light was ON for long hours..but i just formated everything and it was good again but now i am facing a diffrent problem i can't installe the previous files and i am not able to update my laptop.
    Please its a request to help me with this

    Thank you for visiting the HP Support Forums and Welcome. I have looked into your issue about your HP Notebook and updating the Version of Windows. Here is a link to Microsoft that will help with the Updates. You might need to disable your Virus protection.
    I would be happy to assist if needed as there are many models of HP Notebooks, I would need the model number.
    How Do I Find My Model Number or Product Number?
    Please let me know.
    Thanks.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping!

Maybe you are looking for

  • Item     Message text     LTxt        2A     Message(s) when structuring line items for

    Hi , Please can any body help on this below errror message. At the time of executing depreciation (AFAB) we are getting below error message. Item     Message text     LTxt       2A     Message(s) when structuring line items for document number ERROR0

  • DVI to Composite adapter zooms setting of my cinema screen 400%

    When I plug in a brand new DVI to Composite adapter (Nothing else attached) my 23" screen goes first to blue, then it magnifies the entire screen content by about 400%. The signal delivered is also set to 400% of the required screen content. I have c

  • Ipad image burn in

    iPad at 1 1/2 years, diminished enjoyment and privacy concerns. I brought my iPad2 to an apple store and showed them just how bad my screen retention problem was. You can easily read the last url off the background when safari is closed. They, i spok

  • Adobe Captivate 7: "Flip over" animation?

    I'd like to include an animation that basically is circles that state "OBJECTIVES" and then having each circle "flip over" to show more text (the various objects of the video). Does Captivate have this type of animation/capability and I'm just missin

  • Billing output generated on doing PGI

    Hi, I have a scenario wherein the billing output gets generated on doing the PGI. Can anybody let me know what could be the problem?