Error in using FM CLOI_PUT_SIGN_IN_FRONT, need solution...

Hello experts,
I am currently modifying a report wherein I need to put the negative sign in
the front of the value. Now, I tried using the said function module but it is
giving me an error that says 'The current statement only supports character-type
data objects'. I will post below the code where I am using the said FM.
DATA: lv_age_of_rec TYPE p.
  LOOP AT it_final ASSIGNING <fs_final>.
  get records from BKPF
    SELECT SINGLE bukrs belnr gjahr budat bldat xblnr bktxt FROM bkpf
    INTO (bkpf-bukrs, bkpf-belnr, bkpf-gjahr, <fs_final>-budat,
          <fs_final>-bldat, <fs_final>-xblnr, <fs_final>-bktxt)
    WHERE bukrs = <fs_final>-bukrs
      AND belnr = <fs_final>-belnr
      AND gjahr = <fs_final>-gjahr.
  if <fs_final>-shkzg = 'H', multiply dmbtr(amount in local currency)
  by negative 1
    IF <fs_final>-shkzg = 'H'.
      <fs_final>-dmbtr = <fs_final>-dmbtr * -1.
    CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
      CHANGING
        value         =         <fs_final>-dmbtr.
    ENDIF.
  combine needed data to get long text
    CONCATENATE: <fs_final>-bukrs <fs_final>-belnr
                 <fs_final>-gjahr <fs_final>-buzei
                 INTO it_thead-tdname.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        client                        = sy-mandt
        id                            = '0001'
        language                      = sy-langu
        name                          = it_thead-tdname
        object                        = 'DOC_ITEM'
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      TABLES
        lines                         = it_lines
     EXCEPTIONS
       id                            = 1
       language                      = 2
       name                          = 3
       not_found                     = 4
       object                        = 5
       reference_check               = 6
       wrong_access_to_archive       = 7
       OTHERS                        = 8.
   IF sy-subrc <> 0.
     MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
   ENDIF.
  if successful, split long text into start and end date
    IF sy-subrc = 0.
      READ TABLE it_lines TRANSPORTING tdline.
      IF sy-subrc = 0.
        SPLIT it_lines-tdline AT '-' INTO
              <fs_final>-s_dat <fs_final>-e_dat.
      ENDIF.
    ENDIF.
  get vendor name
    SELECT SINGLE name1 FROM lfa1
    INTO <fs_final>-name1
    WHERE lifnr = <fs_final>-lifnr.
    lv_age_of_rec = p_budat - <fs_final>-budat.
  condition for age of deposits
    IF lv_age_of_rec < 30.
      <fs_final>-amount1 = <fs_final>-dmbtr.
    ELSEIF lv_age_of_rec > 30 AND lv_age_of_rec < 60.
      <fs_final>-amount2 = <fs_final>-dmbtr.
    ELSEIF lv_age_of_rec > 60 AND lv_age_of_rec < 90.
      <fs_final>-amount3 = <fs_final>-dmbtr.
    ELSEIF lv_age_of_rec > 90 AND lv_age_of_rec < 120.
      <fs_final>-amount4 = <fs_final>-dmbtr.
    ELSEIF lv_age_of_rec > 180.
      <fs_final>-amount5 = <fs_final>-dmbtr.
    ENDIF.
    CLEAR: bkpf, it_lines-tdline.
  ENDLOOP.
Again, thank you guys and have a nice day!

This FM accepts only the character type variable.It will not accept the field symbol that you have used.
Declare a variable of type char and assign your value to that variable and then pass this variable to the FM.
Use like this.
Data : l_data(10) Type c.
l_data = <fs>-value.
CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'
  CHANGING
    VALUE         = l_data.
Message was edited by: mukesh kumar

Similar Messages

  • Error from using ANT program, need help, Thanks

    Hello,
    I tried to run J2ee tutorial sample code. Following the instruction, I tried to ues ant to build a sample ConverterAPP but get some error message. I would preciate if somebody could give me some help.
    Thanks.
    Hui Lu
    [email protected]
    Following is the command I entered from an CMD window and the exception I got:
    C:\j2sdkee1.3\j2eetutorial\examples\src>ant converter
    ***Warning: I am here start runAnt.
    Exception in thread "main" java.lang.NoClassDefFoundError: Connectors\classes;C:
    \javacode\classes;C:\eGate\client\classes;C:\eGate\client\classes\egate/jar;C:\eGate\client\JRE\1/1/7B\lib\rt/jar;C:\PROGRA~1\MQSeries\java\lib\COMIBM~2/JAR;C:\
    PROGRA~\MQSeries\java\lib\COMIBM~1/JAR;C:\PROGRA~\MQSeries\java\lib\COMIBM~3/JAR;C:\PROGRA~\MQSeries\tools\javaclnt\samples\en_us;
    Warning: I am here end runAnt.
    Following is the command line in the batch file which raised Exception
    C:\jdk1.3.1_01\bin\java -classpath "C:\jdk1.3.1_01\lib\tools.jar";"C:\j2sdkee1.3\jakarta-ant-1.3\lib\parser.jar";"C:\j2sdkee1.3\jakarta-ant-1.3\lib\jaxp.jar";"C:\j2sdkee1.3\jakarta-ant-1.3\lib\ant.jar";C:\javacode\classes;C:\j2sdkee1.3\jaka
    rta-ant-1.3\bin;C:\j2sdkee1.3\bin;C:\jdk1.3.1_01\bin;C:\IBMCON~\CICS\Classes\CTGCLI~1.JAR;C:\IBMConnectors\classes;C:\javacode\classes;C:\eGate\client\classes;C:\eGate\client\classes\egate.jar;C:\eGate\client\JRE\1.1.7B\lib\rt.jar;C:\PROGRA~\MQSeries\java\lib\COMIBM~2.JAR;C:\PROGRA~\MQSeries\java\lib\COMIBM~1.JAR;C:\PROGRA~\MQSeries\java\lib\COMIBM~3.JAR;C:\PROGRA~\MQSeries\tools\javaclnt\samples\en_us;
    -Dant.home="C:\j2sdkee1.3\jakarta-ant-1.3" org.apache.tools.ant.Ma
    in converter
    ****************************************

    Obviously you have the IBM java tools installed on your PC, and your classpath starts with IBM Connectors\...
    What you need to do is to edit your classpath environment variable in control panel->systems, and use quotation marks for any long directory/file names, or directory names with spaces in them. For example, change C:\IBM Connectors\classes to "C:\IBM Connectors\classes". Then it will work.

  • Enterprise Manager Configuration : error generated not in documents.need solution

    I have my database ( Oracle 7.3.2 ) on DEC-Alpha running OpenVMS 7.1 My enterprise manager is 1.2.2 . I created the repository but when trying to connect , the error that is generated is VOC - 00114 ( authentication supplied for a non-repository database cannot access the repository ) . I was trying to connect using a user with DBA privileges and had the repository created with the same user . This error also finds no mention in the documentation . I guess there is some compatibility issue but I am not too sure .
    Please help me

    Raj, I might recommend opening an iTar on Metalink to get a support rep to respond to this.
    Roger

  • APPLET.class not found error on explorer!! need solution URGENTLY!!!

    Hi,
    I am calling my applet from a jsp and trying to run it on the internet explorer but I am getting the following error:
    load: class /WEB-INF/classes/Log/LogApplet.class not found.
    java.lang.ClassNotFoundException: .WEB-INF.classes.Log.LogApplet.class
    My Explorer version is 6.0 and I am using Plug-in: Version 1.4.1_05. Why do you think it cannot find the class? it is located under the specified directory which is:
    /Web Content/WEB-INF/classes/Log/LogApplet.class
    and my jsp which is calling my applet is located under:
    Web Content/Login.jsp
    this is a very urgent problem!! could you please help me? I will appreciate your help so much.
    Thanks,
    Sofia
    here is how I wrote my jsp:
    <jsp:plugin type="applet"
    code="/WEB-INF/classes/Log/LogApplet.class"
    width="600"
    height="620"
    >
    <jsp:params>
    </jsp:params>
    <jsp:fallback>
    <p>Unable to start plugin.</p>
    </jsp:fallback>
    </jsp:plugin>
    ...

    I'm having the same problem...however my applet is located outside of the web-inf folder. the web-inf folder is only for servlets. applets can't be recognised inside it since that folder is for server-side application while applets are meant for client-side.
    i put my applet into a separate folder in the root directory of the webapp but it's generating a security error when i call it using a jsp page. so far the only way i got around it was specifying the entire codebase using localhost...but it's not a pretty good way of doing it.
    any ideas anyone?

  • HT1414 Im trying to restore my Iphone 4S using Itunes but get "unknown error  -1 " Does anyone have a solution?

    Im trying to restore my Iphone 4S using Itunes but get "unknown error  -1 " Does anyone have a solution?

    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.

  • Hi, We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1. When we try to download a file(.pvw file) in that application safari throws "Download failed" error. Please suggest what needs to be done.

    Hi,
    We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1.
    When a file url is clicked instead of asking for Save or Open or Cancel options, the file gets opened on IPad by default.
    Is this default behaviour which cannot be changed or can it be configured to ask user preference?
    When we try to download a file(.pvw file -> a model file) in the above application, safari throws "Download failed" error.
    Please suggest what needs to be done.
    Regards,
    Pramod

    Safari on an iPad in general does not allow downloading of files. That's a safety precaution in the iOS SDK to keep unauthorized content off of iOS devices. Safari will open from the web site file types that it can handle, but direct downloading isn't normal behavior, and I don't believe the behavior can be changed, though you can try asking in the developer forum, either here or the one to which you have access as a member of Apple's iOS developer program.
    Regards.

  • Error occurred in deployment step 'Add Solution': A feature with ID '' has already been installed in this farm. Use the force attribute to explicitly re-install the feature.

    Hi I am getting the error
    Error occurred in deployment step 'Add Solution': A feature with ID 10495515-2482-41fd-98eb-3c87f739f54b has already been installed in this farm.  Use the force attribute to explicitly re-install the feature.
    when trying to deploy web parts
    question 1 - how do i use the force attribute when deploying from visual studio
    question 2 - am i deplying it to the right place, if i deply it to the
    url:port that points to my central admin tool it deploys but i cant seem to see it in any of my webs in my site collection, if i deploy it to the
    url:port that points to my site collection I get this error.
    im new to all this by the way :)
    thanks in advance

    If you are deploying from Visual Studio then please follow this post:
    http://sharepointfordeveloper.blogspot.com/2014/03/solved-visual-studio-issue-error.html
    Open the visual Studio and navigate to the feature XML file and add the bellow attribute.
    AlwaysForceInstall="TRUE"
    The <FeatureName>.Template.Xml output would be some think link this.
    <?xml
    version="1.0"
    encoding="utf-8"
    ?><Feature
    xmlns="http://schemas.microsoft.com/sharepoint/"
    AlwaysForceInstall="TRUE"></Feature>

  • Error occurred in deployment step 'Add Solution': The definition specifies a claim provider with a name already in use.

    Hi,
    When i am trying to deploy sharepoint 2010 application in VS 2010, i am getting the below error:
    "Error occurred in deployment step 'Add Solution': The definition specifies a claim provider with a name already in use."
    How to fix this?
    Thank you

    You can use:
    $provider = Get-SPClaimProvider | where {$_.DisplayName -eq "Provider DisplayName"}
    $mgr = Get-SPClaimProviderManager
    $mgr.ClaimProviders.Remove($prov)
    $mgr.Update()
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    Need solution for the following sync error: "iTunes could not sync calendars to the iPad "iPad name" because an error occurred while sending data from the iPad"

    I want to add that I deleted all the old back-ups and created a new back-up without any issues except sync problem.

  • I am having problems to run an app, there is an error display that says I need to set bonjour and that this app serial number has been used by another red user,  could anybody guide me?

    I am having problems to run an app, there is an error display that says I need to set  bonjour services

    Logic is the APPlication (program, app) that you are having the problem with.
    Logic Pro can take advantage of other computers on your local (home or work) network to help it do "heavy lifting" data chores by using Bonjour and a feature called Nodes.   It seems that Logic is attempting to find and connect to another machine on your network.
    Do you have Logic installed on another computer there?  That may be the source of the confilict.
    You might want to post this question in the Logic Pro Community.
    Be sure to indicate the version of Logic Pro that you are using.  I'm sure the folks there can help you out.

  • Need Solutions for these Errors

    <b>Hello Group !
        How are you people there.Iam very much thank full to you people for your constant support.
    I need solution to these errors:</b>
         1.SID missing.
         2.Idocs Missing or No Idocs arrived from source
            System.
         3.Errors in the source system
         4.Missing messages at transfer rules or
           Update rules.
         5.Data sent but not received.
         6.Errors in the source system.
        Have a nice week end
        Vijay

    Hi,
    1. Missing SIDS : Mostly occurs due to missing master data or if error records are parked and not loaded susequently, or if Master data is not loaded before loading Transaction data. You need to fix these situations.
    2. Missing Idocs -Canbe due to idocs getting stuck, rfc connection failures, bad idocs, partner profies missing or deactivated. need to correct these errors on the source side.
    3.Source system errors - Jobs on source system failed or are slow.idoc errors. Source system crashing. Problems in generic extractions. Problems with update jobs. Data not getting posted to Delta queues. Data not coming through correctly after DS enhancement. Data posting errors to infostructures are some of the errors you'll face on the source system side.
    4. Missing messages again can be due to jobs being slow, processes being killed, or warning messages. Need to treat the warning messages or reset the job.
    5. Can be due to IDOC errors. Goto SM58 and push data packets from there on the source system side or due to IDOC errors.
    6. Same as 3.
    Cheers,
    Kedar

  • HT201210 Pls i was trying to update my iphone 3G to software version 4.2 using itune. The process did not complete succesfully. I then decided to restore back my restore my prevoius version 4.1, it stopped with an error code1015. Pls i need help

    Pls i was trying to update my iphone 3G to software version 4.2 using itune. The process did not complete succesfully. I then decided to restore back my restore my prevoius version 4.1, it stopped with an error code1015. Pls i need help

    Go here: http://www.iclarified.com/entry/index.php?enid=750 and download iOS 4.2.1 for the iPhone 3G. Perform a restore, but hold down ALT when clicking restore. Restore from this file you just downloaded. You should not get 1015 as you are upgrading, but if you get a different error, report back.

  • I am having problems to run logic pro 9, there is an error display that says I need to set bonjour and that this app serial number has been used by another red user,  could anybody guide me?

    I am having problems to run logic pro 9, there is an error display that says I need to set bonjour and that this app serial number has been used by another red user,  could anybody guide me? actually, my computer can't start  since three days ago, could it be the same problem?

    Logic is the APPlication (program, app) that you are having the problem with.
    Logic Pro can take advantage of other computers on your local (home or work) network to help it do "heavy lifting" data chores by using Bonjour and a feature called Nodes.   It seems that Logic is attempting to find and connect to another machine on your network.
    Do you have Logic installed on another computer there?  That may be the source of the confilict.
    You might want to post this question in the Logic Pro Community.
    Be sure to indicate the version of Logic Pro that you are using.  I'm sure the folks there can help you out.

  • I'm trying to activate my Airport Express to a wireless network powered by an Airport Extreme.  I get an error message that says I need to Use Airport Utility 5.6.  My system is currently running Airport Utility 6.1

    'm trying to activate my Airport Express to a wireless network powered by an Airport Extreme.  I get an error message that says I need to Use Airport Utility 5.6.  My system is currently running Airport Utility 6.1

    Is your AirPort Express an older 802.11g model? If so, you will need to install v5.6 if you are running OS X Lion or 5.6.1 if running OS X Leopard or Snow Leopard. Unfortunately, the iOS version of the AirPort Utility cannot administer these older base stations.

  • Any solution for 4280 error when using Itunes to burn CDs?

    Any solution for 4280 error when using Itunes to burn CDs?

    http://support.apple.com/kb/TA38101?viewlocale=en_US

Maybe you are looking for

  • How to extract data from xml and insert into Oracle table

    Hi, I have a large xml file. which will have hundreds of the following transaction tags having column names and there values. There is a table one of the schema with coulums "actualCostRate","billRate"....etc. I need to extract the values of these co

  • I am trying a simple applet... Does it work for you?

    Ok two problems... My friends (even w/ java installed) cannot see my applet online: http://www.geocities.com/vmc20002/Calendar.html Secondly my code isn't working right... There are radio buttons for the months and buttons for the days, when you clic

  • Using iPod with external Hard Drive connected to laptop

    Is there a way to use the iPod video and an external hard drive connected to a Dell Latitude D600 laptop at the same time? I can use one or the other but not both. When both are connected using the usb ports on the back of the laptop, the iPod is not

  • ClassCastException with OracleConnection in Oracle 9i

    I have a piece of code that works perfectly with Oracle 8i and JDK 1.3. Now I've migrated to Oracle 9i and JDK 1.4. I continue working with tomcat and I've configured server.xml file (some changes about 'url' and 'username'). I get a ClassCastExcepti

  • Acrobat not validating signature with three pairs of ByteRange values

    I have created a PDF with a Digital signature, when opened with Acrobat Reader 10 i see the signature not bieng validated with a message saying, "There are errors in the formatting or information contained in this signature (support information: SigD