Is there a BAPI function module which reverses the sign of an integer

Hi Friends,
                 Could u plz tell me  a BAPI function module which can reverse the
sign of an integer ?
For example:       
if i get the integer value in work area as <number> <sign> , i need to change it to <sign><number>. 
i.e if i get the integer value in work area as    "248-" ("-" indicates minus sign) to " -248 ".
i.e if i get the sign after the value , my requirement is to get the sign before the value.
The actual ABAP query is:
data: QTY_1 TYPE CHAR10,
        QTY_2  TYPE CHAR10,
        WA_DISTK_PORTLET-QUANTITY TYPE INT4.
QTY_1 = WA_DISTK_PORTLET-QUANTITY.
                SEARCH QTY_1 FOR '-'.
        IF SY-SUBRC = 0 AND SY-FDPOS <> 0.
          SPLIT  QTY_1 AT '-' INTO  QTY_1 QTY_2.
          CONDENSE  QTY_1.
          CONCATENATE '-'  QTY_1  INTO QTY_1.
          CONDENSE  QTY_1.
        ELSE.
          CONDENSE  QTY_1.
        ENDIF.
        CLEAR: WA_DISTK_PORTLET-QUANTITY.
     MOVE : QTY_1 TO  WA_DISTK_PORTLET-QUANTITY.
when i move this QTY_1 to work area  quantity field The sign is coming after the numeric value.
Note: There is no possibility to change the datatype of quantity field.
I have tried my level best with 'CLOI_PUT_SIGN_IN_FRONT' function module.
I will assign full points to the correct function module.

Hi Ram,
try this ang look into fields.
data: fields type table of SVAL with header line.
fields-tabname = 'MARA'. fields-fieldname = 'MATNR'. append fields.
fields-tabname = 'BKPF'. fields-fieldname = 'BUDAT'. append fields.
CALL FUNCTION 'POPUP_GET_VALUES'
  EXPORTING
    POPUP_TITLE           = 'Value Insert'
  TABLES
    FIELDS                = fields.
Regards, Dieter

Similar Messages

  • BAPI Function module to change the schedule agreement

    Hello Experts,
                             Can anyone tell me Bapi function module to change the scheduling agreement,
    my requirement is i will get the new AEDAT(Delivery date in schedule line)
    and WMENG(Quantity)  Every time customer sends me a flat file which has got
    revised schedule delivery date and Quantity. It needs to be updated in my system
    using a BAPI Functional Module.

    Hi Vivek,
    You must use the correct or most appropriate forum, so this thread will be moved from to .
    The forum is dedicated to: Data Transfer Techniques, Batch Data Communication, Legacy System Migration Workbench, Application Link Enabling, IDOCs, BAPIs.
    Please see the [Forum Rules of Engagement|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting.
    Also read this thread Welcome and Rules of Engagement.
    Greetings,
    Marcelo Ramos

  • Function module  which changes the Storage Unit (SU) Block Data like LS32

    Hi,
    Is there any Function module  which changes the Storage Unit (SU) Block Data as done in  LS32.
    Thank you,
    Prashanth A.

    Hello Pablo.
    Yes we did run LT04 and it does encounter that same error message after clicking the Stock Removal button.  But eventually error msg will be removed by entering the value at the Storage Unit Type field because it directly fills in LTAP-LETYP.
    We have resolved that the function module will not really fill the desired Storage unit type therefore TO background creation is not feasible in our scenario (non-SU managed transfer to SU-managed storage type).  And I found this thread too:  http://scn.sap.com/thread/1947358
    So issue is still open but we have considered of changing the process since this is still just a new scenario for us.
    Thanks a lot for your inputs!

  • I need to create RFC function module which creates the IDOC

    Hi-
    Any idea how to create RFC function module which creates the outbound IDOC. If you have any sample code please forward to me.
    Thanks,
    Sony

    My Problem is
    Whenever they create Invoice using T-code's like FV65(Parked Document), automatically should create IDOC's...
    I have used message type FIDCC1 but this message type is usefull only for Posting documents.
    1. Whenever they create parked document, entries will be stored in BKPF(Parked Document-Filed-BKPF-BSTAT = 'V') and Bseg....
    2. I have to read entries from those tables and should create IDOC...
    3. I checked FM's(FI_IDOC_CREATE_FIDCC1, FI_IDOC_PREPARE) but are not useful...
    4. Now I need to write one RFC function module and that FM should create the IDOC's....
    Can anyone please help me out?
    Thanks,
    Sony

  • Any BAPI Function Module To Create the Workcenter  ?

    Hi
    Can any one can give the BAPI Function Module to Create the Workcenter ?
    Regards,
    N.L.

    Hi NL,
    Found FM CRAP_WORKCENTER_CREATE
    See if this FM serves your purpose.
    Regards,
    Raj

  • Function module which sort the entries in Table maintance generator

    hi
        I want to know the function module which is used to sort the entirs in table maintance genrator.
    Thanks

    Hi,
    Go to the TMG program .You can change the code there.
    Rgds,
    Anversha

  • Is there any bapi/Function module to change only header text in fb02

    Hi ,
    I want to change only header text in FB02 .the header text will come  from a internal table.My Requirement is
    1. open a document in FB02
    2.change the header text of the document.
    Right now i'm doing this through an BDC.but i'm looking for a BAPI /FM.
    I Tried bapi_acc_gl_posting_post, fI_document_change..
    is there any BAPI/FM for this???
    Thanks,
    Challa

    You can use SAVE_TEXT FM
    Thanks
    Seshu

  • Function module to reverse the PGI

    Hi,
    I am using the function module JIT06_REVERSE_GOODS_ISSUE to cancel the PGI.
    but i am getting dump.how to use this FM?

    Hi Lakshmi,
    I also had some problems with FMs to revrese the GI. Then i tried with BDC for VL09 transaction. It is working fine.Even BDC is also very simple. We have to give only the
    delivery number.
    Check below code.
          REFRESH: i_bdcdata[], i_bdcmsgcoll[].
          PERFORM: bdc_screen USING 'RVV50L09'    '1000',
                   bdc_data   USING 'BDC_OKCODE'  '=ONLI',
                   bdc_data   USING 'I_VBELN-LOW' po_vbeln.
          CALL TRANSACTION c_vl09
               USING       i_bdcdata
               MODE        w_mode
               UPDATE      c_s
               MESSAGES INTO i_bdcmsgcoll.
    After this process the messages as per ur requirement.
    FORM bdc_screen USING  p_program
                           p_dynpro.
      CLEAR wa_bdcdata.
      MOVE: p_program TO wa_bdcdata-program,
            p_dynpro  TO wa_bdcdata-dynpro,
            c_x       TO wa_bdcdata-dynbegin.
      APPEND wa_bdcdata TO i_bdcdata.
    ENDFORM.                    " bdc_screen
    FORM bdc_data USING  p_fnam
                         p_fval.
      CLEAR wa_bdcdata.
      MOVE: p_fnam TO wa_bdcdata-fnam,
            p_fval TO wa_bdcdata-fval.
      APPEND wa_bdcdata TO i_bdcdata.
    ENDFORM.                    " bdc_data
    Thanks,
    Vinod.
    Edited by: Vinod Kumar Vemuru on Apr 11, 2008 10:26 AM

  • Bapi / Function module to change the status of transaction crmd_order

    Hello team,
    I am developing the utility in CHARM for which i need to change the
    Status of transaction CRMD_ORDER from "New to "In process" through
    report/BAPI / FM etc... I tried to use report
    CRM_socm_service_report.But it never puts status " In process" rather i
    updates only " "work in progress ".
    Also tried FM "CRM_STATUS_CHANGE_EXTERN" , but doen't work.
    After the process is put "In process" , i want to create change request
    and assign resource". Is there any report / FM /Bapi or anything in the
    system to do this.
    I tried to write BDC but dropdown list is not recorded in the recording.
    Please advice.
    Thanks and regards,
    Swapnil

    Not sure I understand your requirement but maybe FM CRM_ORDER_MAINTAIN will be of help to you.

  • Any BAPI/Function Module for adding new record with dates in PA0027

    Hi all,
    I am tryig to find is there any BAPI/Function module for updating new record with Start Date and End date for specified Personal Number in PA0027 Table.
    In PA0027 table i will be passing start date and end date for selected personal number, it needs to add new record with this details in the table checking the condition that this start date and end dates should not be between any of of start date and end dates for the specified personal number.
    thanks for ur time.
    Murali

    Hi Raj/Suresh thanks for ur answers.
    but i am having a problem,i gave this values.
    INFTY               -
                0027
    NUMBER              -
                00000010
    SUBTYPE             -
                010
    OBJECTID
    LOCKINDICATOR
    VALIDITYEND         -
                03/12/2006
    VALIDITYBEGIN       -
                03/01/2006
    RECORDNUMBER        -
                000
    RECORD              -
                P0027
    OPERATION           -
                CHK
    TCLAS               -
                A
    DIALOG_MODE         -
                0
    NOCOMMIT            -
                Y
    VIEW_IDENTIFIER
    SECONDARY_RECORD
    i am getting short dump saying that
    The source field is too short.
    The current program, "SAPLHRMM", tried to assign a field to a field symbo
    However, the field is shorter than the type of the field symbol, which
    is not allowed.
    The statement in question is in the form ASSIGN f TO <fs> CASTING or
    ASSIGN f TO <fs> with a field symbol that was created using the
    STRUCTURE addition.
    I tried  operation - Chage,Create (same thing for all inputs)
    is this correct funtion moduel for my requirment?
    what ever i am passing the start and end dates this should check in the table records with this personal number and if this start date and end dates are not between of any start and end dates then it should add new record with this dates.
    Thanks for ur time.
    Murali.

  • BAPI Function Module for SCM APO Trans code /SAPAPO/AC42

    Hi,
       Is there any BAPI Function Modules for SCM APO Tcode /SAPAPO/AC42.
       This BAPI FM should return the column values "Remaining Prod Alloc"  and "Incoming Order Quantity" when we give
       below details as inputs for the Tcode /SAPAPO/AC42
            Product Allocation Group
            Product
            Allocation Procedure
            prod Alloc step
            Product Alloc Object (Characteristics of Product Alloc Group)
            Plant (Characteristics of Product Alloc Group)
            Customer Group 5 (Characteristics of Product Alloc Group)
        Reward points if helpful.
    Thanks,
    Mich

    Hi,
    You should be able to get the information using the standard BAPI (Assuming you are using SCM5.0) BAPI_APOPAL_INSERT in the transaction BAPI.
    ProductAllocationAPO.DataInsert
    Interface to Import Product Allocation Data  Functionality
    This method is used to adopt data from OLTP systems for product allocation in the global availability check.
    You can do the following using the method:
    Adopt new data
    You can adopt new characteristics combinations or new time series. Newly created characteristics combinations have the status Active and are therefore included in the product allocation check.
    Change existing data
    You can overwrite existing data if you have set the interface parameter ALLOW_UPDATE. You can set the status of existing characteristics combinations to Active if you set the interface parameter UPDATE_STATUS. If the characteristics combination does not exist, the system creates it.
    The product allocation quantity is overwritten for existing time series. If you also want to change the incoming orders quantity, you must set the interface parameter UPDATE_INCOMING_ORDER_QTY. If the time series does not exist, the system creates it.
    Prerequisite
    To be able to use this method, you must have made all the Customizing settings for product allocation. For more information, see the Implementation Guide (IMG) for SAP APO under Global Available-to-Promise -> Product Allocation.
    Regards
    Vinod

  • Stuck with Bapi Function module BAPI_STSRVAPS_SAVEMULTI2

    Hi all,
    I have been given the requirement to get the stock quantity using the bapi function module BAPI_STSRVAPS_GETLIST2 from the Livacache and depending upon some stock reservation percent split the stock into two as (NEW STOCK and STOCK RESERVED ).And then write it back to Livecache as  change and create.
    Please do tell me how to proceed with it.
    Thanks and Regards.
    syed.

    hi
    hope the following helps u to know what is to be passsed.
    1.  Required entries     :
          BILLING_DATA_IN-SALESORG
          BILLING_DATA_IN-DISTR_CHAN
          BILLING_DATA_IN-DIVISION
          BILLING_DATA_IN-DOC_TYPE
          BILLING_DATA_IN-ORDBILLTYP
          BILLING_DATA_IN-SOLD_TO
          BILLING_DATA_IN-ITEM_CATEG
          BILLING_DATA_IN-REQ_QTY
          BILLING_DATA_IN-SALES_UNIT
          BILLING_DATA_IN-CURRENCY
          If a material is billed for which a material master needs to be
          determined (BILLING_DATA_IN-NO_MATMAST = ' '), you must make the
          following entries :
          BILLING_DATA_IN-PLANT
          BILLING_DATA_IN-MATERIAL
          If, on the other hand, a material is billed for which no material
          master is to be determined (BILLING_DATA_IN_NO_MATMAST = 'X'), you
          must make the following entries :
          BILLING_DATA_IN-COUNTRY
          BILLING_DATA_IN-MATERIAL
          BILLING_DATA_IN-TAXCL_1MAT
    2.  COMMIT control :
          In the update run (TESTRUN = ' ')  the update is carried out by
        COMMIT
          WORK as part of the method available.

  • BAPI/Function module for BATCH SPLIT

    Hi,
    is there a BAPI/Function module to enter BATCH SPLIT data in an outbound delivery. I used tcode VL02N to create an Outbound delivery(FOR an STO). I can use 'BAPI_DELIVERYPROCESSING_EXEC' to creat an Outbound delivery, but need to know what to use to add BATCH SPLIT data.
    Thanks
    Raj

    Hi Raj,
    Check this thread..
    Re: Inserting Batch Split Items in Delivery
    Cheers
    VJ

  • Any Function Module which will give user id or position

    Hello Friends,
       is there any standard function module which will give the attribute position id or user name if i pass the 'attribute id as CNT' with value of the CNT. i know there is a standard function module 'BBP_READ_ATTRIBUTES'. but this FM will give the value of the attribute id if i pass the user id and attribute id but i want user id or position when i pass attribute id and value.
    john.

    Hi,
    See this related thread:
    Re: Get all users given a specific product category
    You cna use the similar approach to find for the attribte cost centre.
    BR,
    Disha.

  • Bapi - function module Measure document creation

    Hi All,
      I need to know the bapi function module which is used to create the measure document creation in IK11 transaction.
    Points will be awarded.
    Thanks and Regards,
    vinoth.

    Hi,
    Try the following BAPI/Fun Modules:
    BAPI_MPID_CREATE
    BAPI_MP_DATED_CREATE
    Regards,
    Anji

Maybe you are looking for

  • Memory on iPhone 4S

    I have an iphone 4Gs - 32GB.  I recently purchased a movie on iTunes but did not have enough memory, so I erased a few movies and a bunch of apps until it said I had enough.  Half way through, there was an error saying that I did not have enough.  I

  • Gray screen issue still in Reader 11.0.03

    Hi, it sounds like the PDF gray screen issue mentioned here:  http://helpx.adobe.com/acrobat/kb/pdf-opens-grey-screen-browser.html has been fixed in 10.1.3.  Has it been fixed in 11.0.03?  I have the latest Xi version installed and am still experienc

  • ISE 1.3 identity purge logging

    Hello, we just configured identity purge for our endpoints on our ISE 1.3 Patch 2 deployment. We have a distributed environment with two PAN, two MNT and severl other PSN nodes. Which log-file can verify if the operation was successful and what was d

  • Approval for Add-on Forms

    Hi Experts, Can we set Approval stages for Add-on Forms in SAP B1? if it is possible pl. guide me to set the approval. Thanks in Advance. Regards Raja.S

  • Can I use corrupt catalog?

    Hey everyone. So I really need some help here. Recently I started using Dropbox to sync my Lightroom catalog between my iMac where I do 95% of my work, and my Macbook Pro. I recently returned from a trip with more than 1,000 new photos. I've been edi