BAPI function module name and mandatory fields

Give the name of BAPI function module for pricing change into the transaction VA05 ?
What are the mandatory fields ?
Please give a exemple code to do this.

Hi,
VA05 is for list of sales order. But if you want to change pricing of material stocks go for follwoing fn module.
BAPI_SALESORDSTCK_PRICE_CHANGE
If you want other BAPI for sales related, just go to SE37, give BAPISALE and press F4, you will get all the BAPI fn modules.
Rewards points if helpful.
Regards,
CS.

Similar Messages

  • Function module RFC_READ_RABLE and currency fields

    I am using RFC_READ_TABLE to access table BSEG on a remote system.  My problem is retrieving field PSWBT which is a currency field.  The value is returned as 20202020203.43 and overwrites part of the next field too.  The value should be 4,083.33
    Does anyone have any experence with currency fields in this situation and can offer any advice?
    Thanks & regards.

    Hi everyone,
    Thank you for your help.  I have now resolved the issue.
    Yes I was using table FIELDS.  Wim was correct that I also needed to use field PSWSL but this alone did not solve the problem.  I had to define the currency field PSWBT as char 13.  When the field was retrieved using RFC_READ_TABLE, I condensed the field and then moved it back to a currency field.  As follows:
    TYPES  : BEGIN OF ty_accdoc,
              pswbt(13),
              pswsl           type pswsl,
            END OF ty_accdoc.
    DATA   : wa_accdoc         TYPE ty_accdoc,
             i_accdoc         TYPE TABLE OF ty_accdoc.
    DATA   : wa-pswbt          TYPE pswbt.
    wa_fields-fieldname = 'PSWBT'. APPEND wa_fields TO i_fields.
    wa_fields-fieldname = 'PSWSL'. APPEND wa_fields TO i_fields.
    u2026u2026u2026 Call function u2018RFC_READ_TABLEu2019u2026u2026u2026u2026
    CONDENSE wa_accdoc-pswbt NO-GAPS.
    wa-pswbt = wa_accdoc2-pswbt.
    Kind regards,
    Alison

  • BAPI Functiona module

    what are the steps to create BAPI functionalodule?

    hi,
    Scenario: Step-by-step creation of a BAPI to retrieve fields from table T001.
    Procedure: Go to transaction SE11 and create a structure as shown or as per your requirement.
    Give the name in the Data type field and click create. 
    In the pop-up that comes up, select the radio button u201C structureu201D. 
    In the components tab of the structure, give the different fields and their corresponding field types and press enter to check the compatibility and corrective ness.
    Do not forget to save it in a package. You can even save it as a local object. For my example, I save it in a package. 
    Check the structure (ctrl + F2) and activate (ctrl + F3) the structure. 
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Now we are done with the creation of a Structure.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Go to transaction SE37 where you create function modules. Click on create after you enter the name of the Function module. 
    A screen as shown above would pop-up where you mention the function group to save the function module and also provide some short text describing your function module. 
    In the next pop-up that follows, click on continue as shown above. 
    The function module screen would look like the one above. 
    Go to the Attributes tab and select the radio button reading u201Cremote-enabled moduleu201D. Come back to the imports tab and provide the import parameters as shown or as per your requirement. 
    Now in the Export tab, provide the export parameters as shown or as per your requirement. 
    In the tables tab, provide the information as shown or as per your requirement. 
    The next screen you visit is the source code. It would look like this.
    In the source code tab, write the following code in order to pick the data based on the input you provide. 
    Now, save and check the code and activate the function module.
    After successful activation, Go to the attributes tab. Go to Function moduleàReleaseàRelease. 
    +++++++++++++++++++++++++++++++++++++++++++++++
    Now we are done with the creation of a Function Module.
    +++++++++++++++++++++++++++++++++++++++++++++++
    Go to transaction SWO1 and enter the name of the BAPI you would like to create or as shown in the screen and click the create button. 
    Give the name of the BAPI as above and click on create. 
    Give the above-mentioned details and click on the continue icon. 
    Save in a package. 
    The resulting screen is as follows. 
    Now click on the methods to drop down and see what methods are provided by default. There would be two methods, showing in red color which come by default while creating the BAPI.
    Click or select the method as shown above and go to the path u201CUtilitiesàAPI methodsàAdd methodsu201D. 
    On the screen that follows, provide the function module name and click on the continue icon.
    In the ultimate pop-up, click the next step icon. We observe that the information is predefined in the fields.
    This is the next screen where you would just click on the u201Cnextu201D icon. 
    Click on Yes. You can see an information message reading u201C ZBAPIFMT001u201D inserted.
    Now save after you add the method. Select & Double click on the API method.
    Go to Tab: ABAP Check 'API Function'. 
    The above screen is displayed. Go to the ABAP tab as shown below. 
    Select the Radio button reading u201CAPI Functionu201D as already said above. 
    click on the continue icon to proceed further. 
    Now select the Object u201CZBAPI_T001u201D as shown below. 
    Go to : EditàChange Release StatusàObject type àTo Modeled. 
    The above shown screen will be displayed. Click on yes.
    The message shows, The object type status set to modeled. (or already modeled) 
    Go to : EditàChange Release StatusàObject type à To Implemented.
    You can see a message reading u201CObject type status set to implementedu201D 
    Now, go to: EditàChange Release StatusàObjectàTo Released.
    There would be two pop ups coming up. Click continue on the Pop Ups. 
    Keep the cursor on the 'Method'. 
    Go to: EditàChange Release StatusàObject type componentàTO Modeled. 
    You can see the message reading u201C status for method u2018zbapifmt001u2019 set to modeledu201D. 
    Now, go to: EditàChange Release StatusàObject type componentà TO Implemented 
    You can see the message reading u201C status for method u2018zbapifmt001u2019 set to implementedu201D. 
    Now go to: EditàChange Releasse Status à Object type component à To Released 
    You can see the message reading u201C status for method u2018zbapifmt001u2019 set to Releasedu201D. 
    Click on Generate Button. (the red ball kind of button is the Generate button) 
    After clicking on the generate button, you can see the message reading u201CObject type 'ZBAPI_T001' generated successfullyu201D

  • Steps for creating a new BAPI function module

    Hello experts,
    Can any one send me steps for creating a new BAPI function module , I got a requirement to do like this,but I dont have any clue about how to create.
    Please help !!!

    BAPI stands for Business Application Programming Interface.
    There are 5 different steps in BAPI.
    - Create BAPI Structure  
    - Create BAPI Function Module or API Method.  
    - Create BAPI object  
    - Release BAPI Function Module.  
    - Release BAPI object.
    Step1. Creating BAPI Structure:  
    - Go to <SE11>. 
    - Select Data Type & Enter a name. 
    - Click on Create.
    - Note: Always BAPI should be in a development class with request number (Not Local Object).
    - Select Structure & hit ENTER.
    - Enter the fields from your database. Make sure that the first field is the Primary Key Field.
    - Then SAVE & ACTIVATE.
    Step 2. Creating BAPI module: 
    - Enter TR.CODE <SE37>.
    - Before entering any thing, from the present screen that you are in, select the menu
       Goto -> Function Groups -> Create Group.
       Enter a name (Note: This name Must start with ZBAPI)
       Let this screen be as it is and open another window and there, enter TR.CODE <SE80).
       Click on the Third ICON that says Inactive Objects. 
       Select the group that you just created and click on Activate. 
       Notice that the group you created will disappear from the list of inactive objects.
    - Go back to <SE37> screen and enter a name and hit <ENTER>. Then enter the group name that you just created and activated.
    NOTE: When you release a function module the respective group will be attached to that particular application. It cannot be used for any other application. NEVER include an already existing group that is attached to another module.
    Now click on the first Tab that says [ATTRIBUTES] and select the radio button that says remote-enabled module since we will be accessing this from any external system.
    Then click on the second tab that says [IMPORT].
    Enter a PARAMETER NAME, TYPE and the structure you created in the first step. Also select the check box ‘Pa’. All remotely enabled functional modules MUST be Pa enabled, where Pa means ‘Passed by Value’ and if you don’t select ‘Pa’, then that means it will be passed by reference..
    Then click on tab that says [EXPORT].
    Enter the following as is in the first three fields 
      RETURN        TYPE        BAPIRETURN (These 3 field values are always same)
      Here also select ‘Pa’ meaning Pass by value.
    Note: BAPIRETURN contains structure with message fields.
    Then SAVE and ACTIVATE.
    Step 3. Creating BAPI object: 
    - Enter Tr.Code <SWO1>   (Note. It is letter ‘O’ and not Zero).
    - Enter a name and then click on create. Enter details. 
    NOTE: Make sure that that Object Type and Program name are SAME.   
    - Enter Application ‘M’, if you are using standard table Mara. If you are using your own database then select ‘Z’ at the bottom. 
    - Then hit <ENTER>. 
    - Now we have to add ‘Methods’. High light METHODS and then select the following from the menu: 
    Goto Utilities -> API Methods -> Add Methods.
    - Enter function Module name and hit <ENTER>.
    - Select the second FORWARD ARROW button (>)to go to next step. 
    - Check if every thing looks ok and again click on FORWARD ARROW button (>).
    - Then select ‘YES’ and click on <SAVE>.
    -  Now on a different screen goto TR.CODE <SE37>.  Enter Function Module name and select from the top menu  Function Module -> Release -> Release.
    - Goback to TR.CODE <SWO1>.
    Here select the menu combination shown below in the same order.
    - Edit -> Change Release Status -> Object Type Component -> To Implemented.
    - Edit -> Change Release Status -> Object Type Component -> To Released.
    - Edit -> Change Release Status -> Object Type -> To Implemented.
    - Edit -> Change Release Status -> Object Type -> To Released.
    - Then click on <SAVE>.
    - Then click on Generate Button (4th button from left hand side looks like spinning wheel).
    - Then Click on the button that says ‘PROGRAM’ to see the source code.
    To check if this is present in work flow goto TR.CODE <BAPI>. 
    Here it shows business object repository.
    - First click on the middle button and then select “ALL” and hit ENTER.
    - Goto tab [ALPHABETICAL] and look for the object that you created. This shows that the BAPI object has been created successfully.
    regards,
    aswin

  • Regarding BAPI/Function Module for updating fields FAKSK and LIFEX

    Hi All,
    I have a requirement wherein i need to update the fields FAKSK(Billing block ) and LIFEX(External Identification number).
    We have already tried using the function Module WS_DELIVERY_UPDATE and also BAPI_OUTB_DELIVERY_CHANGE but we didnt find both the fields in any of the above BAPI or function module.
    To be more specific to the requirement we need to remove the Billing block and update the LIFEX filed.
    If anyone have come accross such situation Please advice.
    Thanks ina dva

    hi satya ranjan,
    put an append to structure 'vbkok' which is used as input parameter for WS_DELIVERY_UPDATE / WS_DELIVERY_UPDATE_2.
    enter faksk and lifex and data field plus an active-flag for every data field.
    e.g.:
    ZZKZTRSPG     ZZKZTRSPG     CHAR     1     0
    ZZTRSPG     TRSPG     CHAR     2     0
    find include 'LV50SFZ2' in WS_DELIVERY_UPDATE am implement like this:
    if  vbkok_wa-ZZKZTRSPG <> space .
    perform likp_bearbeiten_vorbereiten(sapfv50k).
    if not vbkok_wa-ZZKZTRSPG eq space.
      likp-trspg = vbkok_wa-zztrspg.
    endif.
    perform likp_bearbeiten(sapfv50k).
    endif.
    regards
    marcus

  • Modify table data and import to same bapi function module

    Hai friends,
    I have a requirement on bapi , such that after executing the bapi function module data comes on tables and again  i need enter  weight in weight column field in the same table data and pass the same table in the same bapi function module .
    plz sujjest.
    with reagards,
    prasad.

    Can  u explain in details,
    means which bapi r u using? where  u will enter weight? etc.

  • Difference between BAPI Function Module and Remote Enable Function Module

    Dear Experts,
        I want to know the main difference between BAPI Function Module and Remote Enable Function Module ?
    One main difference that I know is BAPI FM are declared in Methods of Business Object  ie BAPI are methods of BOR where as Remote Enabled FM are not. What are other differences? Is it possible to convert a Remote Enable FM to BAPI FM .
    regards
    Manish

    Hello,
    Did u create any ZBAPI?
    The Procdure for Creating the Customer BAPI is Create a Remote Enabled Function module and then goto the tcode BAPI.
    Once u go in to that just take the Project tab and enter the details.
    by this way u can create a Customer BAPI.
    With Regards,
    Sumodh.P

  • BAPI function module to get condition type and its values based on delivery number?

    Hi All,
    I would like to have the BAPI function module to get condition type value based on delivery number before invoice is created.please provide detail program for as a reference .please reply as soon as possible its urgent.
    Regards,
    saaikumar.

    If you haven't already, you may first need to search via the SAP transaction "BAPI" in the area this is applicable to.  Failing that I do hope you get an answer.

  • How to define null or empty value in BAPI function modules?

    Hi,
    I have problem with BAPI functions, where some parameters are mandatory.
    For example: when I try to use HR BAPI's(BAPI_PERSDATA_CHANGE, etc.) I have to insert parameters like SUBTYPE,OBJECTID,LOCKINDICATOR. The PA0002 table that is used from this BAPI doesn't have SUBTYPE, OBJECTID, LOCKINDICATOR, for any of the records that I would like to select.
    So what I tried, was to put a ' ', to indicate that is empty. It returned an error message saying "Make an entry in all required fields". Next tried to put in some values for these fields -- and it returned an error message saying "No data selected from 0002 for this period".
    I also tried to run BAPI_FAMILY_CHANGE that uses data from table PA0021. Here I found some records with  SUBTYPE, OBJECTID fields that were not empty, but LOCKINDICATOR was still missing. So I tried to put LOCINDICATOR value directly in to database (with MS SQL Enterprise Manager).  After that I was able to use BAPI_FAMILY_CHANGE.
    I think that manually inserting data in database is not normal procedure.
    Is there something that I have missed out?
    I mean -- how can I get this to work without inserting data directly in database?
    How can I define null or empty value in BAPI function modules?
    Thank you in advance.
    Best regards,
    Mihail

    Defining an empty value for a parm in a table is easy.
    First get the function's definition from the SAP system
    Second only populate the fields for which you have a value to set
    Third execute the function.
    The JCO takes care of the rest.
    Enjoy

  • HOw to find the BAPI function module

    Hi all,
    I have a field called IEVER in table EIKP.
    How to find the related BAPI function module and BAPI structure for this filed.
    Thanks in advance
    KP

    Hi KP,
       can you tell us the name of the transaction in which you saw this field?
    If it is in PO Creation or Change you can probably look at the bapis
    BAPI_PO_CREATE or BAPI_PO_CHANGE
    Regards,
    Ravi

  • Bapi function module to update PRPS table

    Hi ,
    Presently i have a requirement which needs to update some data from ZIOS table  into PRPS table. Can any one tell me what is the Bapi function module for updating data into PRPS table.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Thanks,
    Satish Raju
    Edited by: Alvaro Tejada Galindo on Jan 12, 2010 11:46 AM

    These ZZ fields are specific to your application, use the EXTENSION parameters.
    Look in BAPI_PS_INITIALIZATION documentation, there is an explanation how-to fill specific fields.
    For the BAPIs used to create and change project definitions, WBS       
    elements, networks, activities, and activity elements, you can         
    automatically fill the fields of the tables PROJ, PRPS, AUFK, and AFVU 
    that have been defined for customer enhancements in the standard system.
    For this purpose, help structures that contain the respective key      
    fields, as well as the CI include of the table are supplied. The BAPIs 
    contain the parameter ExtensionIN in which the enhancement fields can be
    entered and also provide BAdIs in which the entered values can be      
    checked and, if required, processed further.                           
    CI Include  Help Structure                      Key                  
    CI_PRPS     BAPI_TE_WBS_ELEMENT                 WBS_ELEMENT
    Procedure for Filling Standard Enhancements                                                                               
    Before you call the BAPI for each object that is to be created or     
    changed, for which you want to enter customer-specific table enhancemen
    fields, add a data record to the container ExtensionIn:                                                                               
    o   STRUCTURE:    Name of the corresponding help structure                                                                               
    +o   VALUEPART1:   Key of the object + start of the data part+                                                                               
    o   VALUEPART2-4: If required, the continuation of the data part                                                                               
    VALUPART1 to VALUPART4 are therefore filled consecutively, first with 
    the keys that identify the table rows and then with the values of the 
    customer-specific fields. By structuring the container in this way, it
    is possible to transfer its content with one MOVE command to the      
    structure of the BAPI table extension.                                                                               
    Note that when objects are changed, all fields of the enhancements are
    overwritten (as opposed to the standard fields, where only those fields
    for which the respective update indicator is set are changed).        
    Therefore, even if you only want to change one field, all the fields  
    that you transfer in ExtensionIn must be filled.                      
    You have to use these parameters in BAPI_BUS2054_GETDATA as well as in BAPI_BUS2054_CHANGE_MULTI.
    Regards

  • BAPI Function Modules

    Hi Experts,
               Where can I find the Bapi Function Modules.
    Can u provide me the coding part of how to use BAPI in our program .
    Will be rewarded if helpful.
    Regards.

    Hi Raj,
    Foremost of all before you can search for a BAPI you should know the BAPI you are going to use depending on your need. Generally when you are in a project the Functional Consultant gives you the BAPI which you need to use unless you are developing your own BAPI.
    By going to the Transaction BAPI, you can search for the BAPI you need. This transaction takes you to the BAPI Explorer where all the BAPI’s are listed in two ways,
    •     Alphabetical Order
    •     Hierarchical Order
    When the BAPI you need is found you can get all the details regarding all the parameters that are used in the BAPI and also as to how they are declared. DOCUMENTATION is provided for all the BAPI parameters describing them. In the DOCUMENTATION for the BAPI you fill find how a particular BAPI can be used to perform different operations. For ex: the BAPI called BAPI_PROJECT_MAINTAIN can be used perform UPDATE or RELEASE operations.
    Some useful tips when using a Standard BAPI,
    •     Go through all the data declarations of the BAPI parameters and check if any Conversion Rules are used. This is helpful as you will need to declare variables for every parameter in BAPI that you would be used by you. And all these variables should be declared of the same data type as the BAPI parameters.
    •     Check to see if there any mandatory fields that need to be passed. Look for all the BAPI parameters that you would need and declare variables for them and map them correctly.
    •     Though RETURN (generally a table) is may not be mandatory it’s useful to use it as any messages regarding success or error while processing the BAPI are populated in it. In some cases the RETURN may be a structure and in such a case there would another table where messages are populated. These are useful to be used in the program.
    •     After processing BAPI, if successful then the Function Module BAPI_TRANSACTION_COMMIT is performed to save the changes. But if it’s not successful then the Function Module BAPI_TRANSACTION_ROLLBACK is performed to rollback any changes that would have occurred. 
    Sample Program,
    Note: 1. Here the BAPI called BAPI_PROJECT_MAINTAIN is used. This BAPI is used to
             “Edit project including networks”. It can be used perform operations like UPDATE
               or RELEASE and others. Here it’s used to perform UPDATE operation (Here
               ROFIT_CENTER is updated).
    2. Here a Function Module called “CONVERSION_EXIT_ALPHA_INPUT” is used
               to convert the profit center from the External Format(Format as in the program) to
               Internal Format (Format in the BAPI).
    (You can use this program to check out.)
    DATA: wk_i_project_definition TYPE bapi_project_definition,
          wa_i_method_project     TYPE bapi_method_project,
          wa_i_wbs_element_table  TYPE bapi_wbs_element,
          it_i_method_project     TYPE STANDARD TABLE OF bapi_method_project,
          it_i_wbs_element_table  TYPE STANDARD TABLE OF bapi_wbs_element.
    DATA: wk_i_project_definition_upd   TYPE bapi_project_definition_up,
          wk_return                     TYPE bapireturn1,
          wa_i_wbs_element_table_update TYPE bapi_wbs_element_update,
          wa_e_message_table            TYPE bapi_meth_message,
          it_i_wbs_element_table_update TYPE STANDARD TABLE OF bapi_wbs_element_update,
          it_e_message_table            TYPE STANDARD TABLE OF bapi_meth_message.
    CONSTANTS: _index(6)       TYPE c VALUE '000001',
               _wbselement(11) TYPE c VALUE 'WBS-ELEMENT',
               _update(6)      TYPE c VALUE 'UPDATE',
               _save(4)        TYPE c VALUE 'SAVE'.
    wk_i_project_definition-project_definition = 'M-1000000000'.
    wk_i_project_definition_upd-project_definition = 'X'.
    wa_i_method_project-refnumber  = _index.
    wa_i_method_project-objecttype = _wbselement.
    wa_i_method_project-method     = _update.
    wa_i_method_project-objectkey  = 'M-1000000000:00001-003'.
    APPEND wa_i_method_project TO it_i_method_project.
    CLEAR wa_i_method_project.
    wa_i_method_project-method = _save.
    APPEND wa_i_method_project TO it_i_method_project.
    wa_i_wbs_element_table-wbs_element = 'M-1000000000:00001-003'.
    wa_i_wbs_element_table-profit_ctr  = '65576'.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = wa_i_wbs_element_table-profit_ctr
      IMPORTING
        output = wa_i_wbs_element_table-profit_ctr.
    APPEND wa_i_wbs_element_table TO it_i_wbs_element_table.
    wa_i_wbs_element_table_update-profit_ctr = 'X'.
    APPEND wa_i_wbs_element_table_update TO it_i_wbs_element_table_update.
    CALL FUNCTION 'BAPI_PROJECT_MAINTAIN'
      EXPORTING
        i_project_definition               = wk_i_project_definition
        i_project_definition_upd           = wk_i_project_definition_upd
      IMPORTING
        return                             = wk_return
      TABLES
        i_method_project                   = it_i_method_project
        i_wbs_element_table_update         = it_i_wbs_element_table_update
        i_wbs_element_table                = it_i_wbs_element_table
      I_WBS_MILESTONE_TABLE              =
      I_WBS_MILESTONE_TABLE_UPDATE       =
      I_WBS_HIERARCHIE_TABLE             =
      I_NETWORK                          =
      I_NETWORK_UPDATE                   =
      I_ACTIVITY                         =
      I_ACTIVITY_UPDATE                  =
      I_RELATION                         =
      I_RELATION_UPDATE                  =
        e_message_table                    = it_e_message_table
      I_ACTIVITY_ELEMENT                 =
      I_ACTIVITY_ELEMENT_UPDATE          =
      I_ACTIVITY_MILESTONE               =
      I_ACTIVITY_MILESTONE_UPDATE        =
    IF wk_return IS INITIAL.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          =
    IMPORTING
      RETURN        =
      LOOP AT it_e_message_table INTO wa_e_message_table.
        WRITE:/ wa_e_message_table-message_id, wa_e_message_table-message_number,
                wa_e_message_table-message_type, wa_e_message_table-message_text.
      ENDLOOP.
    ELSE.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
              IMPORTING
                RETURN        =
      LOOP AT it_e_message_table INTO wa_e_message_table.
        WRITE:/ wa_e_message_table-message_id, wa_e_message_table-message_number,
                wa_e_message_table-message_type, wa_e_message_table-message_text.
      ENDLOOP.
    ENDIF.
    Regards,
    Raga Suman.

  • 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

  • BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition

    Dear All,
    BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition in PO pricing. Please give me a right solution on this query.
    Below I have given my code.
    Thanks and Regards
    Makarabd
    poitem-po_item = '00010'.
    poitem-net_price = '1060.00'.
    poitem-period_ind_expiration_date = 'D'.
    APPEND poitem.
    poitemx-po_item = '00010'.
    poitemx-po_itemx = 'X'.
    poitemx-net_price = 'X'.
    APPEND poitemx.
    select single * from ekko where ebeln = po_no.
    pocond-itm_number = '00010'.
    pocond-cond_type = 'ZVCU'.
    pocond-cond_value = 10.
    pocond-currency = '%'.
    pocond-STAT_CON = 'X'.
    pocond-accruals = 'X'.
    pocond-change_id = 'I'.   " I - Add , U - Update , D - Delete
    APPEND pocond.
    pocondx-itm_number = '00010'.
    pocondx-itm_numberx = 'X'.
    pocondx-cond_type = 'X'.
    pocondx-cond_value = 'X'.
    pocondx-currency = 'X'.
    pocondx-change_id = 'X'.
    pocondx-STAT_CON = 'X'.
    pocondx-accruals = 'X'.
    APPEND pocondx.
       CALL FUNCTION 'BAPI_PO_CHANGE'
            EXPORTING
              purchaseorder          = po_no
            TABLES
              return                 = return
              poitem                 = poitem
              poitemx                = poitemx
              pocond                 = pocond
              pocondx                = pocondx.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
    WAIT = 'X'.

    Hi ,
    Are you trying to pass the non char fields in CI_COBL. Please look at the link below .
    [http://forums.sdn.sap.com/thread.jspa?threadID=1137795] .
    Also serach for the similar threads when and notes while transferring currency and quantity field in different custom includes of the EKPO ...
    Thanks,
    Anjaneya .

  • 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.

Maybe you are looking for

  • Overloaded methods question

    I guess I don't understand overloaded methods as well as I thought I did, because I'm confused about some behavior I'm seeing in my Java program. Here's a sample program that I wrote up to demonstrate the issue: public class Polymorphism      static

  • My macbook shuts down after 5 minutes

    My macbook shuts down after 5 - 10 minutes, and I have to restart it each time. Can anyone help me with this? I've tried resetting the PRAM, re-instatlling the OS, switching HDD's. I asked a friend of mine what it could be and he said it may possibly

  • Buttons in the navigation bar are moved around.

    The Home button is to the far right of the search bar (Google..Yahoo..etc) and the Refresh button and Cancel button (X) are between the search bar and the WWW (World Wide Web) browser bar.

  • UCCX 10.5 finesse desktop + email and presence

    Hi all, We have recently upgraded to UCCX 10.5 and I'm playing around with finesse desktop. Has anyone setup a widget for email yet? I cant find any documentation that would detail how to do this. Similarly , in the CAD version - you had chat to othe

  • I'm unable to import cover art to my MPEG-4 movies that I've imported into iTunes. What gives? Where is the artwork tab?

    I'm unable to import cover art to my MPEG-4 movies that I've imported into iTunes. What gives? Where is the artwork tab?  I'm running iTunes 11 on my Windows 7 laptop.