BDC  display Error while converting the Currency ..

Hi,
Using BDC i have to cal Transaction Vk15.
In this we have a field KONP-kbetr, which is a currency feild, with 2 decimals.
I have to converted the Currency to 'EUR' and has moved it in a variable "gv_char13".
______________+declaration part+_____________________
Data :  gv_eurconv_vk(14)      TYPE rkb1k-exchr,
           gv_eurconv_vk       TYPE konp-kbetr,
             gv_char13(14) TYPE c.
_____________+Currency Conversion+________________
  CALL FUNCTION 'RKC_SINGLE_EXCHANGE_RATE_GET'
    EXPORTING
      datum               = gv_sydatum
      kurst               = 'P'
      ncurr               = 'EUR'
      vcurr               = 'CZK'
IMPORTING
   exchr               = gv_exchr_vk
   EXCEPTIONS
     no_rate_found       = 1
     OTHERS              = 2
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
  WRITE gv_exchr_vk  NO-GROUPING CURRENCY 'EUR'.
  MOVE gv_exchr_vk TO gv_eurconv_vk.
  CLEAR gv_char13.
  WRITE gv_eurconv_vk TO gv_char13.
_________+Passing Value IN BDC VK15+__________
    wa_bdcdata_vk-fnam     = 'KONP-KBETR(01)'.
    wa_bdcdata_vk-fval     =  gv_char13.                     
    SHIFT  wa_bdcdata_vk-fval LEFT DELETING LEADING space.
    APPEND wa_bdcdata_vk TO gt_bdcdata_vk.
    CLEAR wa_bdcdata_vk.
----------+Calling the Transaction VK15+____
  CALL TRANSACTION 'VK15' USING gt_bdcdata_vk  MODE 'E' MESSAGES INTO gt_bdcmsg_vk.
**--Display the error message if the call transaction fails--**
    IF sy-subrc EQ 0.
      IF NOT gt_bdcmsg_vk IS INITIAL.
        READ TABLE gt_bdcmsg_vk INTO wa_bdcmsg_vk INDEX sy-index.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id     = wa_bdcmsg_vk-msgid
            lang   = 'EN'
            no     = wa_bdcmsg_vk-msgnr
            v1     = wa_bdcmsg_vk-msgv1
            v2     = wa_bdcmsg_vk-msgv2
            v3     = wa_bdcmsg_vk-msgv3
            v4     = wa_bdcmsg_vk-msgv4
          IMPORTING
            msg    = gv_text_vk
          EXCEPTIONS
            OTHERS = 0.
        IF sy-subrc EQ 0.
          APPEND  gv_text_vk TO gt_mess_vk.
        ENDIF.
      ENDIF.
    ENDIF.
  ENDLOOP.
**--Display the error message on the screen--**
  IF NOT gt_mess_vk[] IS INITIAL.
    LOOP AT gt_mess_vk INTO wa_mess_vk.
      WRITE:/ wa_mess_vk.
      CLEAR wa_mess_vk.
    ENDLOOP.
  ENDIF.
In the dispaly tabkle for error message "gt_bdcmsg_vk" we get the sucess message and in table "gt_mess_vk" we get the message as the "Condition records Saved."
The problem is when this report is executed it displayes the converted currency Value and in next line it dispalyes the ""Condition records Saved".
But idealy the converted currency value should not be dispalyed.
Actual Sample display:(shuld be this ):
xyz.. message
Condition Record Saved.
Sample display (Error Dispaly ):
xyz.. message
  3,14E-02 -
(This shuold not be dispalyed)
Condition Record Saved.

Use modified code...
*______________declaration part_____________________
Data :  gv_eurconv_vk(14)      TYPE rkb1k-exchr,
          gv_eurconv_vk       TYPE konp-kbetr,
             gv_eurconv_vk TYPE p DECIMALS 2,
             gv_char13(14) TYPE c.
*_____________Currency Conversion________________
  CALL FUNCTION 'RKC_SINGLE_EXCHANGE_RATE_GET'
    EXPORTING
      datum               = gv_sydatum
      kurst               = 'P'
      ncurr               = 'EUR'
      vcurr               = 'CZK'
IMPORTING
   exchr               = gv_exchr_vk
   EXCEPTIONS
     no_rate_found       = 1
     OTHERS              = 2
  IF sy-subrc  <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
WRITE gv_exchr_vk  NO-GROUPING CURRENCY 'EUR'.
MOVE gv_exchr_vk TO gv_eurconv_vk.
  gv_eurconv_vk = gv_exchr_vk.    
  CLEAR gv_char13.
  WRITE gv_eurconv_vk TO gv_char13.
*_________Passing Value IN BDC VK15__________
    wa_bdcdata_vk-fnam     = 'KONP-KBETR(01)'.
    wa_bdcdata_vk-fval     =  gv_char13.                     
    SHIFT  wa_bdcdata_vk-fval LEFT DELETING LEADING space.
    APPEND wa_bdcdata_vk TO gt_bdcdata_vk.
    CLEAR wa_bdcdata_vk.
Calling the Transaction VK15____
  CALL TRANSACTION 'VK15' USING gt_bdcdata_vk  MODE 'E' MESSAGES INTO gt_bdcmsg_vk.
*Display the error message if the call transaction fails*
    IF sy-subrc EQ 0.
      IF NOT gt_bdcmsg_vk IS INITIAL.
        READ TABLE gt_bdcmsg_vk INTO wa_bdcmsg_vk INDEX sy-index.
        CALL FUNCTION 'FORMAT_MESSAGE'
          EXPORTING
            id     = wa_bdcmsg_vk-msgid
            lang   = 'EN'
            no     = wa_bdcmsg_vk-msgnr
            v1     = wa_bdcmsg_vk-msgv1
            v2     = wa_bdcmsg_vk-msgv2
            v3     = wa_bdcmsg_vk-msgv3
            v4     = wa_bdcmsg_vk-msgv4
          IMPORTING
            msg    = gv_text_vk
          EXCEPTIONS
            OTHERS = 0.
        IF sy-subrc EQ 0.
          APPEND  gv_text_vk TO gt_mess_vk.
        ENDIF.
      ENDIF.
    ENDIF.
  ENDLOOP.
*Display the error message on the screen*
  IF NOT gt_mess_vk[] IS INITIAL.
    LOOP AT gt_mess_vk INTO wa_mess_vk.
      WRITE:/ wa_mess_vk.
      CLEAR wa_mess_vk.
    ENDLOOP.
  ENDIF.

Similar Messages

  • Error while deriving the currency from table

    i am getting the below error while simulating the payroll for india.
    Error while deriving the currency from table T001P & Error during Initialization of payroll.
    i am SAP HCM Trainee.. practicing at home.

    Pls check the currency in table T500C.
    You can use TCode OE00 for table maintenance T500C.
    Also check whether currency is there in table V_CURC and T510.
    Hope this will help.
    Regards
    Ghouse

  • Error while deriving the currency from table T001P.

    Hi Friends,
    I am trying to run payroll for NZ using schema NZ00 but i am getting an error stating "Error while deriving the currency from table T001P. Error during initialization of Payroll"
    I have checked V_T001P, V_T001 and have deleted the personnel area and subarea and again created it but still i am unable to solve this problem.
    Could you please help me as to where this error can be corrected.
    Thanks,
    Manj

    About the incidence, the problem might be related to the links between
    personnel area, company code and currency set up (table T001P, T500P and
    T001).
    Please check the following points:
    1- Have you assigned the Personnel area to the Company code under SPRO -
    IMG -> Enterprise Structure -> Assignment -> Human Resource Management
    -> Assignment of Personnel Area to Company Code.
    2- SPRO -> Personnel Management -> Personnel Admin -> Basic Settings ->
    Determine Currencies (Public Sector Currency Need to be maintained along
    with the other node).
    3- SPRO- Personnel Management -> Personnel Admin -> Payroll Data ->
    Basic Pay -> Define Hourly Rates for several decimal places. (Please
    maintain all the nodes).
    4- Maintaining the table t500c through transaction code OE00.
    Regards
    Ramana

  • Error while determining the currency types for PO

    Hi,
    When running MR11 on PO4534356339 (account maintenance) the following error msg appears:
    Error while determining the currency types for 4534356339 00030.
    Message no.C+171
    Check the configuration.
    I have checked all currency settings and found ok. Material ledger is activated for this plant. It looks like there is problem in Item 30 of the Purchase order is having problem.
    Best Regards,
    MR

    Hi,
    Please refer this link :
    MR11 error - Error while determining currency type - C+, 171!!!
    Regards,
    Pramitha.

  • Error while converting the ITF format to PDF format

    Hi mates,
    I am working on a requirement where i need to download a pdf file on to my desktop. The requirement is:
    I have a data in ITF format which is fetched from READ_TEXT. Now  i need to convert this ITF data format into PDF format and download the pdf file on the desktop. for this what i have done is I have converted the ITF data to XSTRING first by using the FM 'LXE_CONVERT_ITF_XML'. Now i have converted the ITF data format to XSTRING data format. Then i have converted the XSTRING data format to Binary data format using FM 'SCMS_XSTRING_TO_BINARY'. Finally i have used the cl_gui_frontend_services=>gui_download to down load the data on to the desktop in pdf format....
    CALL METHOD cl_gui_frontend_services=>gui_download and passed the parameters and i am able to download the pdf file on desktop. But the problem is when I am opening the file its displaying the error message ' Adobe Reader could not open the file because it is either not a supported file type or because the file has been damaged' Any thoughts on this.... Share
    Regards,
    Mohammed Shukoor.

    Hi
    Can u tell us what is the function of the UDF in your case ?
    Apart from Converting the given input xml to pdf output, I dont see there is any other functionality within the UDF .. and  the XMLTOPDF Class requires the two inputs to be passed when it is instantiated in the code
    and now if you don't pass those parameters, it's going to throw an IO exception
    Regards
    Krishna

  • I am getting error while converting the xml file to pdf

    Hi all,
    I am getting the error
    "Runtime exception when processing target-field mapping /ns0:MT_payment_rec/payment_rec/companycode; root message: Exception:[ExceptionConverter: java.io.IOException: The document has no pages.] in class com.sap.xi.tf._MM_Payment_Advice_ method calculate[a, com.sap.aii.mappingtool.tf7.rt.Context@2e0d7679]"
    I followed below  blog for converting xml to pdf
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/1940
    in this blog they mentioned source & target path, but I read the values directly Through sender communication channel with out giving the source and target path in udf(calling the java code from imported archive, and excuted for converting xml to pdf file),
    but i am getting above error,
    Is there any possibility to return the converted pdf values to target field through udf
    Pls help me.

    Hi
    Can u tell us what is the function of the UDF in your case ?
    Apart from Converting the given input xml to pdf output, I dont see there is any other functionality within the UDF .. and  the XMLTOPDF Class requires the two inputs to be passed when it is instantiated in the code
    and now if you don't pass those parameters, it's going to throw an IO exception
    Regards
    Krishna

  • Error - while converting the file you do not have the privilege to make

    changes.....? can someone help me everytime i try to import a cd i get the above message???? HELP PLEASE.

    Hey amba1015,
    I found an article that talks about similar error messages in relation to importing an audio CD. Check out the recommended troubleshooting steps in here to see if they help:
    Trouble adding music to iTunes library or importing audio CD
    http://support.apple.com/kb/TS1387
    Welcome to Apple Support Communities!
    Have a good one,
    Delgadoh

  • Error while simulating the payroll

    Hi,
    While simulating the payroll, the log displays"Error while deriving the currency from table T001P & Error during initialization of payroll"
    Please help me to overcome this problem
    Thanks
    Shadeesh.G

    Srinivas
    check V_T500P  assigment of your pay roll area with ur country grouping
    Check the Tcode OE00  whether the currency exists in this table
    later check V_T510F_B 
    double check the entires in IT008 once
    Check it slowly

  • Error while converting Image -to- PDF and then to PDF/A

    Hi,
    I'm trying to convert a Image format(JPEG,bmp,tiff) to PDF and then to PDF/A. I could able to convert Image to PDF successfully.
    I'm getting the below error while converting the PDF(that was generated) to PDF/A.
    Caused by: com.adobe.livecycle.output.exception.OutputException: Input Document is a already flat PDF Document
    at com.adobe.printSubmitter.PrintServer.transformPDF(PrintServer.java:307)
    at com.adobe.printSubmitter.service.OutputServiceImpl.transformPDFInTxn(OutputServiceImpl.ja va:518)
    at com.adobe.printSubmitter.service.OutputServiceImpl$4.doInTransaction(OutputServiceImpl.ja va:481)
    ... 106 more
    Error OCCURRED: ALC-DSC-000-000: com.adobe.idp.dsc.DSCException: Internal error.
    Please give me the solution to convert PDF to PDF/A?

    I've just read a footnote in the API documentation which indicates that the transformPDF function cannot be used for this purpose:
    "GS_Enterprise said on Nov 24, 2007 at 12:03 PM :
    Please note that the parameter "inPdfDoc" for transformPDF assumes that the stream content is an XFA-based PDF, and that it's not an XFA-based PDF with a PDF background (also known as "XFA foreground"). In other words, this function does not convert any input PDF to PDF/A, but only those PDFs generated from an XFA template which does not include any static PDF content as a background."

  • Error while deriving the currencyfrom table T001P for International payrol

    Dear Experts,
    when i run the payroll in simulation mode. im geting an error msg as ' error while deriving the currency from table T001P'
    I have checked all PA assignement with compnay code and country grouping (molga =99), which is correct and also i have checked all bellow tables.
    V_T510F_B
    T500W
    T500C
    Transaction code OE00
    In Trasaction code OE00, system not allowing me to give the currency (LKR - Srilankan Rupees). its giving an error msg as ' maximum of 2entries are allowed for each country in table T500c'(Its not alowing me to save it)
    I dont knw how to over come from this issue.
    I have chnaged the company code and tried but still im getting the same error while running the payroll.
    Any idea from Anyone....?
    Regards
    Dinesh.

    HI Mohan,
    Thz for your reply.i have checked all tables which u have mentioned. but currency (LKR- Srilankan Rupees) has been assigned.
    In V_CURC.. there are no 2 entires. but when i try to assign the currency in T-Code OE00. its giving an error msg " A maximum 2 entries are allowed for each country in Table T500C"
    I have tried to make one more intry in the same table and the same currency then its giving an error msg as " An entry already exist with the same key"
    V_TCURR  is currency exchnage rate...  Is it necesory?
    Thz,
    Dinesh.

  • 'Error occured while converting the file--unknown error occured 0x77686174

    I just got my first iPod but I'm a little frustrated. I put in a cd, iTunes opens and asks me if I want to import the songs, I reply yes. When it tries the very first song of the cd, it immediately comes up with 'Error occured while converting the file "name of song". An unknown error occured (0x77686174).' It doesn't matter if this is a completely new cd or an older one.
    I ran CD diagnostics on iTunes and my results are below. I have posted this several times on many different boards and haven't found any solutions or been given any solutions from anyone. I have an iPod that I can't use because I can't download any songs...does anyone have any idea what to do?
    I've looked at Dell to update drivers for my cd drive but it says that I have the newest drivers...the computer isn't even a year old yet. What do I do?? I've wiped the cd like several posts say to do, I've clicked the fix error option on cd off and on like several posts have said to do, I've changed the conversion of 128 to 64 like several posts have said to do...help please, anyone?
    Microsoft Windows XP Home Edition Service Pack 2 (Build 2600)
    Dell Inc. Dell DM051
    iTunes 7.3.1.3
    CD Driver 2.0.6.1
    CD Driver DLL 2.0.6.2
    LowerFilters: PxHelp20 (2.0.0.0), DRVMCDB (1.0.0.1), DLACDBHM (1.0.0.1),
    UpperFilters: GEARAspiWDM (2.0.6.1),
    Current user is an administrator.
    Video Display Information:
    RADEON X300 SE 128MB HyperMemory
    RADEON X300 SE 128MB HyperMemory Secondary
    Connected Device Information:
    Disk drive, ST3160812AS, Bus Type ATA, Bus Address [0,0]
    Disk drive, TEAC USB HS-CF Card USB Device, Bus Type USB
    Disk drive, TEAC USB HS-MS Card USB Device, Bus Type USB
    Disk drive, TEAC USB HS-SD Card USB Device, Bus Type USB
    Disk drive, TEAC USB HS-xD/SM USB Device, Bus Type USB
    CD-ROM Drive, TSSTcorp CDRWDVD TS-H492C, Bus Type ATA, Bus Address [0,0]
    If you have multiple drives on the same IDE or SCSI bus, these drives may interfere with each other.
    Some computers need an update to the ATA or IDE bus driver, or Intel chipset. If iTunes has problems recognizing CDs or hanging or crashing while importing or burning CDs, check the support site for the manufacturer of your computer or motherboard.
    D: TSSTcorp CDRWDVD TS-H492C, Rev DE02
    Audio CD in drive.
    Found 12 songs on CD, playing time 54:35 on Audio CD.
    Track 1, start time 00:02:00
    Track 2, start time 03:30:32
    Track 3, start time 09:38:25
    Track 4, start time 14:58:53
    Track 5, start time 18:01:08
    Track 6, start time 21:24:57
    Track 7, start time 26:37:43
    Track 8, start time 32:16:51
    Track 9, start time 36:17:54
    Track 10, start time 41:57:36
    Track 11, start time 46:21:38
    Track 12, start time 51:48:24
    Audio CD reading succeeded.
    Get drive speed succeeded.
    The drive CDR speeds are: 48.
    The drive CDRW speeds are: 48.

    I came across your error code in iLounge, this post might help you out: http://forums.ipodlounge.com/showthread.php?threadid=30496

  • Error while running the foreign currency valuation

    hello frnds,
    i got the following error while running the foreign currency valuation.
    No accounting principle assigned to valuation area
    Message No.fr894
    Diagnosis
    In customizing the valuation area is not assigned to an accounting principle. You can use the accounting principle to define the general ledgers in which posting takes place.
    System Response
    Error msg
    Procedure
    Assign the valuation area to an accounting principle.
    Above is the error message, but I created valuation area and assigned it to an accounting principle.
    Guide me with some inputs.
    Regards,
    Siva

    Hi,
    Please check the following path
    IMG > Financial Accounting (New) > Financial Accounting Global Settings (New) > Ledgers > Parallel Accounting > Assign Accounting Principle to Ledger Groups
    Whether you have defined the Accounting Principles to Ledger Group?
    Regards,
    jigar

  • Error occurred while converting the file...

    So, it seems like every CD that I tried importing over the last couple of days at some point caused the software to stop and go:
    Error occurred while converting the file "[Track name here]". An unknown error occurred (-50).
    Has a solution been found for this? Have others experienced this problem? How do I fix this?

    Importing problems have been rife in the recent iTunes release.
    Not sure how to solve your problem, but until a solution comes along feel free to rip in another program, such as Windows Media Player, and add the resulting MP3s to your iTunes library.

  • Error Occurred While Converting the file"name of song" The file name.......

    I get this message when I try to import some CD's to my library.
    A window pops up and says
    Error occurred while converting the file "name of song"
    The file name was invalid or to long.
    Anyone else ever get this message, and how can you import CD's???????

    I have had this exact same problem. I'm not sure how to fix it...

  • Error occured while converting the file . . . . . .

    While trying to import a music CD into iTunes, I get the following message:
    Error occured while converting the file "Handel: Messiah, HWV 56 - Sinfony". You do not have the privelege to make changes.
    The song in question is: Handel: Messiah, HWV 56 - Sinfony.
    I've imported a number of CDs into iTunes and have never seen this before.

    Hi, LongIsland14. 
    Thank you for visiting Apple Support Communities.
    This issue would be related to a permission issue most likely with the iTunes Media folder.  Here are a couple articles that will help you troubleshoot this issue.
    Trouble adding music to iTunes library or importing audio CD
    http://support.apple.com/kb/ts1387
    iTunes: Missing folder or incorrect permissions may prevent authorization
    http://support.apple.com/kb/ts1277
    Cheers,
    Jason H.

Maybe you are looking for

  • Outlook 2010 corrupting incoming pdf attachments for one user

    I have one user here that is having incoming pdf attachments get corrupted in Outlook 2010. When she tries to open the file, it gives the error "Adobe Reader could not open filename.pdf because it is either not a supported file type or because the fi

  • Calendar sync between iCal, Outlook 2011 and 2010 and iCloud

    All, I'm having trouble syncing calendars on my devices and I haven't been able to find a workable solution yet. I know this topic has been covered extensively, but I haven't found anything that works. I want to be able to sync my calendars (email wo

  • Program names ZX... are reserved for includes of exit function groups

    Hi I'm trying an enhancement example out of a SAP \ ALE | EDI book.  I get the above error after performing the following steps :- 1  Via CMOD create an enhancement project. 2  Assign enhancement VSV00001 to the project. 3  Display components & selec

  • Controlling focus in a Tab Canvas when a FORM_TRIGGER_FAILURE is raised

    Hello, I am currently working on a form that is using a Tab Canvas. The canvas has about 9 pages, and I am, at this moment, adding error handling functionality on the fifth page. My problem happens when a condition is met that raises a FORM_TRIGGER_F

  • Cannot print PO document from ME9F

    Dear Expert, Hi, I got trouble when printing out the PO document. Here, I have created new PO type (PO Mold) with series number 457xxxxx but the problem is i cant print out the PO 457xxxxx from ME9F. there is a message : no suitable purchasing docume