How to maintain the amount field format after GUI_DOWNLOAD

Hi everyone.
I have this problem on my object.
The format of field ERFMG in table AUFM is 3.921,569.
After I SELECT it INTO an internal table it becomes like this 3921.569
I would display this internal table in ALV and its ok. Its format is 3.921,569 The format is also not changed when I download it into an excel file using LIST -> EXPORT -> LOCAL FILE -> SPREADSHEET.
However my program should automatically download to local if the user tick a checkbox in the selection-screen. It will use function module GUI_DOWNLOAD. When this is used, the format of ERFMG changes to 3921.569 again, since it is using my declared internal table.
How will I use GUI_DOWNLOAD without changing the format of amount fields like ERFMG? What are my other options to do this?
The Decimal Notation in my User Profile is already set to 1.234.567,89
Thank you in advance.

Hi Cris,
To get the output in the user format for the decimals, try the following code.
data: wg_dec(7) type p decimals 2.
data: wg_dcp type usr01-dcpfm.
data: wg_dec_str(10) type c.
wg_dec = '111135.67'.
select single dcpfm from usr01
        into wg_dcp
       where bname = sy-uname.
move wg_dec to wg_dec_str.
if wg_dcp ne 'X'.
  replace all occurrences of '.' in wg_dec_str with ',' .
endif .
write:/ wg_dec, wg_dec_str.
I dont feel there is any other option where you can change the decimals format as per the user profile.
While giving the output of decimal values in a list, the system automatically displays it in the profile set by the user.
This code will help you to set the decimal value as '.' or ',' as per the user profile.
Note: It wont add the unit separator for hundreds and thousands. Again you have to do that manually.
Hope this proves of some help to you.
Regards,
Pulkit

Similar Messages

  • How to club the amount field for the particular customer from file

    Hi ,
    In my BDC i am getting the Amount field which is need to be put in the Header data . For 1 Customer there are more than 5 line in amount field in the Excel file.
    For the Particular Customer , I need to club all the amount ffield and put it into the Heade data for the customer.
    How to do this .
    Thanks

    got answer

  • How to supress sign after the amount field

    Hi All,
    How to suppress the sign after the amount field is it using only no-sign or any other ways are there for doing that?
    Regards
    Mahesh

    Hi,
      Please use the Variable type BSEG-DMBTR, which does not support any sign. <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Feb 20, 2008 2:07 PM

  • How make display only the amount field in table control(infotype 0008)

    Dear Freinds,
    have to make display only the amount field (Q0008-bet01) on table control in infotype 0008 , could you tell me how to make it display only.
    i have tried the below coding it is not working in PBO & PAI of the user exit
    ZXPADU01 and ZXPADU02. For the table control is there any othe method??
           loop at screen.
               screen-name  = 'WA_P0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    i have tried like this as well
           loop at screen.
               screen-name  = 'Q0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    in the both the above methods it is not working. Could any one plese suggest me how to make display only the amount field in infotype 0008.
    regards
    syamla

    Dear Freinds,
    have to make display only the amount field (Q0008-bet01) on table control in infotype 0008 , could you tell me how to make it display only.
    i have tried the below coding it is not working in PBO & PAI of the user exit
    ZXPADU01 and ZXPADU02. For the table control is there any othe method??
           loop at screen.
               screen-name  = 'WA_P0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    i have tried like this as well
           loop at screen.
               screen-name  = 'Q0008-BET01'.
              screen-input = 0.
              screen-output = 1.
              modify screen.
          endloop.
    in the both the above methods it is not working. Could any one plese suggest me how to make display only the amount field in infotype 0008.
    regards
    syamla

  • How to maintained the Text  language for CKF keyfigure

    Dear All,
    Please let me know how to maintained the text language for CKF I am using only keyfigures in CKF.
    Issue is text is not showing in Spain language when user exeuted the report (longin Spain) for CKF keyfigures .
    As per report design there are formuals and direct keyfigures and CKF has defined and we keep it under in Row struture in the report.
    After exeuted the report (Login Spain)Text has converted in all languages along with spain except for CKF keyfigures.
    Issue in text CKF's:
    There is a main  CKF (Cost) under this again we defined two sub CKF's those are total cost and average cost. We able to see the text in Spain language for Main CKF(cost) and also cheked in RSZELTTXT(Texts of reporting component elements) for the same.
    We can able to see the text in all languages for main CKF(cost) and enteries are there in RSZELTTXT table.
    We can see only  the text in english for  total cost and average cost and also enteris are there only in EN in RSZELTTXT table.
    It would help to me if any one can answer my question.
    Thanks in advance .
    Regards,
    MQ

    U can fetch the texts for the items using
    Read_text.
    Example:
        g_f_tdname = xvttp-vbeln.
        g_f_obj = p_obj.
        g_f_langu = 'DE'.
        REFRESH g_t_lines.
        CLEAR g_t_lines.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id                      = p_var
                  language                = g_f_langu
                  name                    = g_f_tdname
                  object                  = g_f_obj
             TABLES
                  lines                   = g_t_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.
    The Required fields are,
    Text-id ,language,name,object.
    Let me know if you further require help.
    Regards

  • How to maintain the data in the view cluster

    we are doing upgrade, we have one view cluster app_log in this object scwb
    and subobjects is swtlo1,02,03 like i have some subobjects in 4.6c we transported the view cluster to ecc6.0 in ecc 6.0 i have object scwb  but subobjects doesn't exist how to maintain the subobjects in view cluster.

    Definition
    A view cluster is a group of maintenance dialogs which are collected in one maintenance unit for business or technical reasons. They allow related data in more than one table/view to be maintained consistently.
    Use
    Whereas only 1:1 relationships can be processed in maintenance views (except for language-dependent texts), key extensions and relationships of cardinality N:M can also be handled in view clusters. Maintenance dialogs with no key, or partial key-dependence, can also be combined into view clusters.
    Grouping dialogs into one maintenance unit has the following advantages for data maintenance:
    Navigation: A view cluster contains convenient standard navigation between the individual maintenance dialogs. This simplifies the maintenance of the data in a view cluster.
    Consistency: The view cluster ensures data consistency when deleting, copying, saving, retrieving and manually transporting data. For example when an entry in a higher-level view is deleted, , it automatically ensures that all dependent entries in lower-level views are also deleted.
    You can first split tables with a lot of fields into various views and then collect them into a view cluster.
    Use tabs to format very wide tables with a lot of fields.
    Structure
    Navigation in a view cluster is usually based on the hierarchy of the tables/views on which the dialogs are based. A view cluster usually consists of one or more root dialogs and the at most 14 maintenance dialogs which depend on them. A view at a lower level has one or more additional fields in its key compared its higher-level view. Each data record at the higher level has several dependent data records below it.
    Each maintenance dialog is an independent unit consisting of an overview screen or an overview and a detail screen, depending on the dialog type. As well as the data to be maintained, the overview screen contains a navigation area, in which you can go to higher or lower level maintenance dialogs.
    One-level maintenance dialogs only contain one screen, the list screen, in which all existing data records are displayed in a table. In a two-level maintenance dialog, double-clicking on a data record in the list screen takes you to the detail screen, which displays all the fields in the selected data record.
    Generate a maintenance dialog for each view before you call the cluster maintenance (SM34). When you generate the maintenance dialog, flag the key fields which are identical in the view and its higher-level in the cluster, with the maintenance attribute S. The system fills the key fields when you go from the upper to the lower level, with the values of the data record selected in the upper level. Go to the transaction SE54 to define a view cluster.
    <b>Rewards point if useful.......</b>
    regards....
    Abhaysingh.

  • How to Maintain the Pricing Condition Records in CRM

    Hi
    I am new to the CRM
    How to maintain the pricing condition records in crm for the particular condition type?
    as we do in SD(VK11)
    Thanks

    Hi Binu,
    First of all, you could maintain pricing conditions in the following places:
    1. In General Condition Maintenance (GCM)
    2. At the product maintenance level
    3. At the 'Price agreement' tab of Contracts
    4. As manual conditions during order processing at item level
    Now, if you want to maintain conditions using GCM, you first have to maintain a condition maintenance group in the customizing where in you can assign condition table and condition type for different counter values. I am assuming that you have done this activity successfully.
    When you run the transaction '/SAPCND/GCM', for application 'CRM', your condition maintenance group name and context 'GCM', you will be initially taken to a screen where in you'll have an item area which would be blank and then condition fields would be displayed in a tree on the left.
    Here, select the field 'Condition type' and click on icon 'Select records'. You would get a dialog prompting you to enter condition type. Here you can specifiy the condition type for which you want to maintain/view condition records.
    If no condition records are available, item area would be left blank. Here, you can choose a condition type using the standard F4 help. Depending on condition types that are assigned to condition maintenance group, different condition types would be displayed in the F4-help using which you can maintain condition records.
    Hope this helps.
    Regards,
    Pavithra
    **PS: Please reward points if this helps.

  • How to get the value field of the return parameters for an action step in teststand sequence file programatically using c#

                    Sequence mySequence = myEngine.NewSequence();
                    mySequence.Name = "myAction";
                    //Create new step of type Action and set Name
                    Step mystep = myEngine.NewStep(AdapterKeyNames.DotNetAdapterKeyname, StepTypes.StepType_Action);
                    mystep.Name = "GetStringObject";
                    //Obtain the code module from the step
                    DotNetModule myModule = mystep.Module as DotNetModule;
                    //Set properties of the module
                    myModule.SetAssembly(DotNetModuleAssemblyLocations.DotNetModule_AssemblyLocation_File, @"C:\Documents and Settings\My Documents\Visual Studio 2005\Projects\HelperClass\HelperClass\bin\Debug\HelperClass.dll");
                    myModule.ClassName = "Class1";
                    myModule.MemberType = DotNetModuleMemberTypes.DotNetMember_GetProperty;
                    myModule.MemberName = "StringObject";
                    mySequence.InsertStep(mystep, 0, StepGroups.StepGroup_Setup);
                    mySequence.Locals.NewSubProperty("StringObject", PropertyValueTypes.PropValType_Reference, false, "", 0);
                    DotNetParameterDirections reference = mySequence.Locals as DotNetParameterDirections;
                    mySequence.Locals.GetPropertyObject("StringObject", 0);
                    myModule.ClassReference = "Locals.StringObject";
                    myModule.LoadPrototypeFromMetadataToken(385875969, 0);
    After this I am not able to proceed.herewith attached documents contain screenshot of teststand file marked red is to be solved. How to define the value field of the return parameters?
    Attachments:
    HelperClass.cs ‏1 KB
    ex1.gif ‏2305 KB

    Please see my answer to your question on page two of the following forum thread:
    Programmatically generating DotNet Steps in TestStand
    Manooch H.
    National Instruments

  • How to maintain the contact person in Business Partner ?

    Hi Experts,
    Could you help to resolving the below Requirement.
    __  +Requirement:+__
    How to maintain the contact person in Business Partner ?
    How to get the Contact person in Is-Media Documents?
    Thanks& Regards
    Venkat

    Dear Venkat,
    In SD Customer Master data, we can maintain Contact Person in General Data tab page.
    For my knowledge, we can not find u201CContact Personu201D field in ISM Business Partner u2013 General Data. Correct me if I am wrong.
    Mostly user enters the contact person details in u201CSearch Term 1/ 2 fieldu201D in Address tab page in ISM Business Partner u2013 General Data tab page. While creating ISM Billing Document for this Business Partner, system prints this contact person details in ISM Invoices.
    (Or)
    While creating ISM Order, user can maintain Contact Person name in Header Details(Click on u201CGo to >Header>Details>Purchase Order Data>Cont.Person)
    If you maintain Contact Person name in Header Details also, system print this contact person details in ISM Invoices.
    Check from your end.
    Best Regards,
    Chandramohan

  • How to maintain the status of the Thread ?

    How to maintain the status of the Thread ?
    namanc

    I want to know whether a particular thread (java
    application) is completed successfully or not ...
    If the thread is not completed successfully then I
    want to restart the Thread.
    Actually this is the Task Scheduler Application ...
    If the particular task is not running successfully
    then I want to start the Task again ...
    namancThen it could look something like this: // loading the queue
    for each task
        add task to list of incomplete tasks
        enqueue task in work queue
    // dispatcher
    while !done()
        task = workQueue.dequeue();
        New Thread(task).start();When a task finishes, it can call a callback method on the dispatcher. The dispatcher looks at the task's status. If it finished successfully, the task gets removed from the list of incomplete tasks. Else it goes back on the work queue.
    There will be some syncing issues involved. You'll have to use wait() and notify()/notifyAll() to handle the situation where the work queue is empty, and all incomplete tasks are being worked on. And the case where the dispatcher wakes up after the notifyAll() and there's nothing to dequeue and nothing in the list of incomplete tasks.
    Clearly it needs some fine tuning, but I hope you get the idea.

  • Amount Field format problem

    Hi,
    I am uploading G/L entry using STD program RFBIBL00.
    In input excel file I am getting amount as 1000.1
    When i upload excel to Internal table field (Type C) it is 1000.1
    I am passing this value as it is to BBSEG-WRBTR.
    Program creates BDC Session. But when I execute BDC session in foreground/backgorund, the amount field show 1000,1
    and gives error "Input should be in the form __.___.___.__~,__"
    My current decimal notation at user level is 1,234,567.89
    I tried passing amount to BBSEG-WRBTR in all possible formats but no use.
    If i pass amount without decimal. i.e 1000, it works fine.
    BBSEG-WRBTR is char16 field.
    Any idea, what could be the problem?
    This is very urgent.
    Thanks &  regards,
    Umesh

    I am pasting code.
    Whatever commented, all tried.
    FORM convert_amount  USING    p_dcpfm   TYPE xudcpfm
                                  p_in_amt  TYPE c
                                  p_waers   TYPE waers
                         CHANGING p_out_amt TYPE wrbtr_bi.
    Input amount will be in 99999.99 format
      DATA: lv_amount TYPE wrbtr.
      lv_amount = p_in_amt.
      p_out_amt = lv_amount.
    CLEAR p_in_amt.
    WRITE: lv_amount CURRENCY p_waers TO p_out_amt.
    CONDENSE p_out_amt.
    WRITE p_out_amt TO p_out_amt LEFT-JUSTIFIED.
    CASE p_dcpfm.
       WHEN ''.    "1.234.567,89
         TRANSLATE p_out_amt USING '.#'.
         TRANSLATE p_out_amt USING ',.'.
         TRANSLATE p_out_amt USING '# '.
       WHEN 'X'.   "1,234,567.89
         TRANSLATE p_out_amt USING ', '.
         CONDENSE p_out_amt NO-GAPS.
       WHEN 'Y'.   "1 234 567,89
         TRANSLATE p_out_amt USING ',.'.
         CONDENSE p_out_amt NO-GAPS.
    ENDCASE.
    ENDFORM.                    " convert_amount

  • Is it possible to maintain the last AO value after the DAQmx task is done on device DAQ USB-6341 ?

    Hi all,
    I use the device DAQ USB-6341 to generate the desired voltage waveform by the "finite samples" sample mode.
    I notice that the channel resets to zero volts after the DAQmx task is done and the DAQ USB-6341 does not have 
    the property AO.idleOutputBehavior to select "Maintain Existing Value".
    How can I maintain the last AO value after the DAQmx task is done on device DAQ USB-6341 ?
    Thanks.
    Godel

    How many computers do you have in the network?
    What is the IP address and default gateway number on your computer?
    In order to connect to the wireless network, WVC80N should get valid IP address from the access point.
    If the access point has capacity to assign a private IP address to the computers and devices then I think you can use WVC80N.

  • How to set the data fields column wide at sqlplus

    Dear Sir/Madam
    I would like to know how to set the data fields column wide at sqlplus
    Thanks
    Francis

    see
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch6.htm#sthref1131
    and the FORMAT clause of the COLUMN command in
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14357/ch12013.htm#BACHCABF

  • How to avoid the Amount and Date values for VOID Cheques

    Hi All,
    I had created a two window i.e For Amount and Date. If I process the cheque the Amount value and Date should not trigger for VOID CHEQUES.
    Can any one tel me how to avoid the Amount and Date values for VOID Cheques
    Your help will be greatly appreciated.
    Regards
    Yathish

    Hi,
    I dont know which tablel you are referring to, is it PAYR table and the field VOIDR?
    If a cheque is voided, it would have a reason and it is stored in VOIDR field of this PAYR table.
    Check if the field VOIDR is filled, if it is filled, do not print the amount and date.
    Regards
    Subramanian

  • How to Maintain Control Code Field in Foraign Trade Export Tab.

    Hi All,
    How I Maintain Control Code Field in Foraign Trade Export Tab. U can check this field with executed MM02 and Tab "Foraign Trade Export Tab"
    How I  add one more value in masters.Where is the screen and what is the T-code or Options for maintain the above data.
    Urgent
    Thanks all,
    Tapovardhan

    Hi
    I just checked the Documentation and it is for Poland. This might not be useful. Try the T-code that I had given or the path is SPRO->SD->Foreign Trade/Customs--->Basic Data for Foreign trade and Define comodity codes/Import codes by country.
    Please reward if this helps.
    Thanks

Maybe you are looking for

  • 1.1.0.315 Upgrade Wreaked Havoc on My Contacts

    I installed the1.1.0.315 upgrade a couple of weeks ago, and after roughly 48 hours of absolute chaos (affecting emails, calendar, etc.), my contacts remain scewed up.  Texts from my oldest friend are showing up as if they came from my most important

  • The "readonly" attribute not working in Firefox 4.0

    the readonly implementation in actually applications and sites not working how in previous versions. The Navigator not block the input text.

  • How to recover a deleted/overwritten mailbox in Exchange 2013?

    We had a mailbox in our exchange database 1 called, example, [email protected] And I had to create another mailbox called, example, [email protected], which I created in the same database. This either deleted or overwrote the first mailbox (@abc.com)

  • Execute script logic using data manager

    Hi all, Could anyone explain me how to run a script logic using the data manager? The only way I get it working is adding the script logic into the defaul.lgl file and running the default formulas package via data manager. How can I run an specific s

  • EM db console

    Have configured it one of the customer sites , I can get test email to confirm notification is setup but I dnt get any notification coming thru! I know there are alerts outstanding. Deliberately set the threshold too low in orer to trigger some more