Name of function module that will remove  sign ( + or - ) of any quantty

Dear Sir,
  Can Any Body help On this matter .
My requirement is that in my quantity field some amount will come like
9812636-
758934-
436478
46378564-
i want to remove the minus sign if it is in negative if it ia in possitive then it's ok.
but to multilpy with -1 is not solution bcz it is debit and credit calculation so  i want a function module for further processing .

Sample Program:
DATA :
v_num type i,
v_no1 type i,
v_no2 type i.
v_no1 = -1.
v_no2 = 2.
v_num = v_no1 * v_no2.
v_num = ABS( v_num ).
write : v_num.

Similar Messages

  • Function Module that will retrieve the parameters for a given function Modu

    Hi
    We have a requirement where we will be calling Function Module that will be maintained in a table entry. How we will determine what is the parameters that is required by this function module. Is there a FM that will suffice the requirement.
    Thanks in advance
    arghadip

    Hi,
    You have to write a custom code for that. Use the table FUPARAREF to retrieve the parameters for a function module. Give function module name as input.
    Pls reward points if solved your issue.
    Regards,
    Renjith Michael.

  • Function Module that will retrieve the Field Catalogs of a Display Variant

    Hello Experts,
    Are there any function modules that I can use to retrieve the field catalogs (fields to be displayed in ALV report) by passing the display variant name?
    An RFC needs to apply this to determine which field(data) to be passed to XI (calling system) depending on user login.
    Thanks in advance!

    These are the various FM available for Variants (field Layout)
    REUSE_ALV_VARIANT_ALL_MAINTAIN Maintain all display variants for one object
    REUSE_ALV_VARIANT_DEFAULT_GET  Read default display variant (description only, w/o field catalog)
    REUSE_ALV_VARIANT_EXISTENCE    Checks whether a display variant exists
    REUSE_ALV_VARIANT_F4           Display variant selection dialog box
    REUSE_ALV_VARIANT_MAINTAIN     Definition of a display variant outside the list context
    REUSE_ALV_VARIANT_SAVE         Save a display variant
    REUSE_ALV_VARIANT_SELECT       Read a display variant
    Regards,
    Amit

  • Function module that will return week  details

    Anyone know Sap FM that will return Week  details(as below)for a given start and end dates (similar to the function module HR_99S_INTERVAL_BETWEEN_DATES which  returns details for a month) independent of factory calendar
    I am expecting
    Inputs
    Start Date  - 01/01/2005
    End Date   -  05/05/2006
    outputs
    WK YEAR BEGDA      ENDDA      
    02 2005 01/03/2005 01/09/2005 
    03 2005 01/10/2005 01/16/2005 
    04 2005 01/01/2005 01/23/2005
    Thank, Bill

    Hi Bill,
    FM is <b>GET_WEEK_INFO_BASED_ON_DATE</b>
    Here's a test-program for your requirement:
    REPORT zforum09 LINE-SIZE 255.
    PARAMETERS:fdate  LIKE sy-datum DEFAULT '20050103',
               tdate  LIKE sy-datum DEFAULT '20060505'.
    DATA : BEGIN OF itab OCCURS 0,
           week LIKE scal-week,
           from LIKE sy-datum,
           to LIKE sy-datum,
           END OF itab,
           next LIKE sy-datum.
    next = fdate.
    WHILE tdate > itab-to.
      CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
           EXPORTING
                date   = next
           IMPORTING
                week   = itab-week
                monday = itab-from
                sunday = itab-to.
      next = itab-from + 7.
      APPEND itab.
    ENDWHILE.
    LOOP AT itab.
      WRITE:/ itab-week+4(2),
              itab-week(4),
              itab-from,
              itab-to.
    ENDLOOP.
    Regards Andreas

  • Function module that runs for every info package

    Hi,
    Please can you give me name of function module that runs for every info package irrespective of data source.
    Cheers,
    Reddy.

    use below function module
    RSSM_SDL_START_INFOPACKAGE

  • Function Module that gives the names of the file in the Application Server.

    Hi Experts,
       Please give me a Function Module that gives the names of the file in the Application Server.
    Thanks,
    Debi.

    Hi,
    see these links
    http://help.sap.com/saphelp_nw04/helpdata/en/2a/fa02b7493111d182b70000e829fbfe/content.htm
    http://abaplovers.blogspot.com/2008/05/function-module-sap-logged-in-users-to.html
    http://www.saptechies.com/abap-function-modules/
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/function-module-to-get-data-and-time-of-file-576751
    thanks
    karthik

  • Function module that takes  directory name of AL11 tcode

    Hi friends,
    is there any function module that takes  directory name of AL11 tcode and returns the path in AL11 tcode?.
    Thanks
    -Jom

    Hi Jom,
    Welcome to SDN.
    No function module is available for that request.
    You need to ask BASIS to make specific path available in transaction AL11.
    To read directory file, you can use the following FM.
    RZL_READ_DIR - Read directories of an application server                 
    RZL_READ_DIR_GLOBAL - Read directories of an application server                 
    RZL_READ_DIR_LOCAL - Read local directory                                      
    RZL_READ_DIR_REMOTE - Read Remote Directory                                     
    RZL_READ_DIR_REMOTE_SH - Read Directory: Cross Host Boundary via Remote OS Mechanism
    RZL_READ_FILE - Read file, cross host boundary via sap adm mechanim       
    RZL_READ_FILE_LOCAL - Read local file                                           
    RZL_READ_FILE_REMOTE - Read file                                                 
    RZL_READ_FILE_REMOTE_SH - Read file, cross host boundary via remote-os-mechanism    
    Regards,
    Ferry Lianto

  • Table Name or Function Module to find out all the Screens & Subscreens for

    Hello Experts,
          Table Name or Function Module to find out all the Screens & Subscreens for all T-Codes
    Helpful Answer will b rewarded
    Arif Shaik

    Hi Balaji,
       But TSTC only Gives the Program Name , T-Code and Screen but not all the Subscreen details
    Any other which U know

  • Impact on using function modules that are flagged as obsolete

    Hi Gurus,
    I'm working on a SAP 4.7 instance and we are soon to be going Unicode enabled. I noticed when running transaction UCCHECK that there are a number of function modules such as "POPUP_TO_CONFIRM_WITH_MESSAGE" and "POPUP_TO_DECIDE" as well as others that are flagged as obsolete, I'm not sure why these are not picked up in UCCHECK. However, can someone tell me what the impact would be if these obsolete functions were left as is and not changed?
    Thanks in advance
    C

    Thanks for your responses, I agree with you both.
    my view was that after we go unicode enabled all function modules that are flagged for deletion will still perform as they do now, however, as Praveen says this may not be the case in later versions.
    Thanks
    C

  • Function module that can give balances by segment?

    Hi SAPs,
    I need help to get standard SAP function module that can give me GL balances by segment, period and fiscal year. I tried the existing function module for GL balances - BAPI_GET_ACCBALANCES - but it does not support segment. Please let me know if you found any. I need to use it for group reporting requirement.
    Thanks

    Hi ,
    We have  aggregate functions in SQL. Some of the functions are as follows.
    MAX(col ) Determines the maximum value of the value in the column col in the resulting set or in the current group.
    MIN( col ) Determines the minimum value of the content of the column col in the resulting set or in the current group.
    AVG(  col ) Determines the average value of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    SUM( col ) Determines the sum of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    COUNT( col ) Determines the number of different values in the column col in the resulting set or in the current group.
    For further details , type the function name name and press F1 for further help.
    Eg: select count(mantr) from mara into workarea where condition.
    Reward points if helpful.
    Thanks and Regards.

  • Reg: Function Module thats used to check the status of JOBS and mail it

    Hi Experts,
    Is there any Standard Function module thats going to find the status of the jobs and mail this status to specied email ID in .xls format. While checking status function module should give whether job is - Aborted, Successful, Running, Waiting, Locked, Error, Warning, Starting Date, Ending Date of the Job.
    Please help me,

    Hello Nagaraj,
    You can find out the status of a job with the SHOW_JOBSTATE function module. You provide this function module with a job name and job number. It returns one of the six possible statuses of the job:
    ABORTED TYPE C,
    FINISHED TYPE C,
    PRELIMINARY TYPE C,
    READY TYPE C,
    RUNNING TYPE C,
    SCHEDULED TYPE C.
    Following is the link for the same:
    http://help.sap.com/saphelp_sm32/helpdata/en/fa/096e10543b11d1898e0000e8322d00/content.htm
    Warm Regards,
    Riki Dash

  • Function module that can give the last value or the highest value of a key

    hi,
    Is there any function module that can give the last value or the highest value of a key feild in a z table.
    regards,
    johnson

    Hi ,
    We have  aggregate functions in SQL. Some of the functions are as follows.
    MAX(col ) Determines the maximum value of the value in the column col in the resulting set or in the current group.
    MIN( col ) Determines the minimum value of the content of the column col in the resulting set or in the current group.
    AVG(  col ) Determines the average value of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    SUM( col ) Determines the sum of the content of the column col in the resulting set or in the current group. The data type of the column has to be numerical.
    COUNT( col ) Determines the number of different values in the column col in the resulting set or in the current group.
    For further details , type the function name name and press F1 for further help.
    Eg: select count(mantr) from mara into workarea where condition.
    Reward points if helpful.
    Thanks and Regards.

  • How to find the names of Function Module used in the program

    Hi all,
    can you people help me with this issue.I want to the names of all the Function Module used in the program  along with their parameters into an internal table.It will be helpful for your suggestions.
    Kind Regards,
    Edited by: Prasenjit Sengupta on Nov 20, 2008 7:39 AM

    Take structure of internal table as
    TYPES : BEGIN OF TY_FM,
            FUNCNAME TYPE RS38L_FNAM,  "Name of Function Module
            PARAMETER TYPE RS38L_PAR_, "Parameter name
            PARAMTYPE TYPE RS38L_KIND, " Parameter type
            R3STATE TYPE R3STATE,      "ABAP: Program Status (Active, Saved, Transported...)
            STRUCTURE TYPE RS38L_TYP,  "Associated Type of an Interface Parameter
            DEFAULTVAL TYPE RS38L_DEFO,"Default value for import parameter
            REFERENCE TYPE RS38L_REFE, "Call by reference
            OPTIONAL TYPE RS38L_OPTI,  "Optional parameters
            TYPE TYPE RS38L_TYPE,      "Reference Structure is an ABAP/4 Type
            END OF TY_FM.
    DATA : IT_FM TYPE TABLE OF TY_FM WITH HEADER LINE.

  • Is there any function module that brings out profile planner

    Hello experts,
    Is there any function module that brings out profile planner (I want to set planner profile as u201CSAP800u201D. I am using 7KE1 transaction.
    Example: I know, the FM - K_KOKRS_SET_BATCHINPUT will set the controlling area to 'CTIC' for the entire batch input process.
    Thanks in advance.

    look at these fms..
    CACS_PROFILE_PARTNER_READ
    CACS_PROFILE_SHOW

  • Function Module which will take Wekk No & Return date range (from & To dat)

    Hello everyone,
    I need a Function Module which will take Week No as an input Parameter & return me the date range
    (From date & To date of that week) .
    Thanks in advance!
    Cheers!
    Moderator message: date calculation questions = FAQ, please search before posting.
    Edited by: Thomas Zloch on Nov 2, 2010 5:25 PM

    Hi,
         Please write the below logic..
    data : v_date11 type sy-datum,
              monday    type sy-datum,
              sunday  type sy-datum,
              v_count1 type i .
    *v_count1 = 20 * 7.            "   Say U want details for 20th week , or give a parameter for week and multiply with 7*
    v_date11 = '20100101'.     "   take the starting day of the year ....
    v_date11 = v_date11 + v_count1.   " add to the date
    CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'   <-- call this FM
    EXPORTING
       DATE          = v_date11
    IMPORTING
      WEEK          = WEEK
       MONDAY        = MONDAY <-- will have the week starting day
       SUNDAY        = SUNDAY
    Regards,
    Srini.

Maybe you are looking for

  • Can we use subqueries in Web Intelligence

    Hi, I would like to know how can we use subqueries  in WebIntelligence Report. Regards, Swapna.

  • Transport Sales Area Data from CRM to R/3

    I have created a function module within DSAVE event in BDT so the Sales Area BILLING BLOCK REASON could be updated with a fixed value according to the Sales Area selected by the user. That worked all right using the standard function module CRM_BUPA_

  • Filter Lens Correction is missing from the menu, along with adjacent filters.

    Filter > Lens Correction is missing from the menu, along with adjacent filters. I updated 1 day ago via Adobe Connect and it is now missing from the menu drop down. As well as the other filters in that general area.

  • Is this part of quick time and do I need it?

    Is this file part of quick time:0xc0000022? Do I need it? If so, how do I get it to load? If not, how do I remove it?

  • ITunes 11 and iTaf

    I've used iTaf as an alarm clock on my Mac for years. After upgrading to iTunes 11, I noticed that iTaf is no longer able to initiate the playing of music, though it seems to have convinced itself that has fired off the alarm. Does anyone know if som