How to fill the blanks after field content?

Hi,
I have a problem about ABAP programming. As follow:
data: txt char(20) type c.
txt = 'text_vol '.
Now I excute these codes in SAP abap workbench. The result is: txt
= 'text_vol'. The blanks follow the 'tex_vol' is condense by system.
How can I perform the function that make the system don't condense the
blanks automaticlly?
best regards!
andy

Hi Andy,
If you use MOVE statement, then it will have blank spaces at the end.
eg.
data : l_temp(25) type c.
Move 'Sample' to l_temp.
write :/ l_temp.
In above case, l_temp has only 6 words in a variable which can store 25 words.
So the remaining space is blank. i.e. 19 blank spaces after word Sample.
Best regards,
Prashant

Similar Messages

  • How to fill the segment name field in a data record

    Hi All,
    I am using pure java (jco) (not XI) to send idoc to R3. I know how to check the definition of Idoc type by using Tcode - we30, we05, BD......
    I am wondering if someone on this forum has the onhand experience about the following question:
    The "segment name" field in a data record should be filled with "Segment type" or "Segment Name". Sounds silly? huh? But this question is not always clear for me.
    For instance, E1MBXYH - Goods movements for Mobile data entry.
    There are three versions - E2MBXYH, E2MBXYH001 and E2MBXYH002.
    Should I use "E1MBXYH" or one of E2MBXYH, E2MBXYH001 and E2MBXYH002?
    I appreciate that you could give me a clear explanation.

    The EAN / UPC fields are part of the material master .. So if you hahve this fileds filled in MM02 , then automatically these fileds are taken where ever the material Number is referenced

  • How to fill the values in List Box?

    Hi Experts,
    Can anyone explain me how to fill the values in the List Box such that the value should be from the table?
    For Example : Fill the EmpID from table T1 into the ListBox?
    Thanks in Advance,
    Regards,
    Raghu

    hi,
    and u doing it through report means from se38 than here is code...
    DATA : BEGIN OF itab OCCURS 0,
            matnr LIKE mara-matnr,
           END OF itab.
    DATA : ok_code LIKE sy-ucomm.
    CALL SCREEN 0200.
    *&      Module  STATUS_0200  OUTPUT
          text
    MODULE status_0200 OUTPUT.
      SET PF-STATUS 'Z200'.
    ENDMODULE.                 " STATUS_0200  OUTPUT
    *&      Module  USER_COMMAND_0200  INPUT
          text
    MODULE user_command_0200 INPUT.
      CASE ok_code.
        WHEN 'BACK' OR 'UP' OR 'CANC'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0200  INPUT
    *&      Module  mat_val  INPUT
          text
    MODULE mat_val INPUT.
      SELECT matnr FROM mara INTO CORRESPONDING FIELDS OF TABLE itab
        WHERE matnr BETWEEN '000000000000000101' AND '000000000000000109'.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield               = 'MATNR'
           VALUE_ORG              = 'S'
          tables
            value_tab              = itab
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    ENDMODULE.                 " mat_val  INPUT
    <b>And this is flow logic..</b>
    PROCESS BEFORE OUTPUT.
      MODULE status_0200.
    PROCESS AFTER INPUT.
      MODULE user_command_0200.
    PROCESS ON VALUE-REQUEST.
      FIELD itab-matnr MODULE mat_val.

  • How to Fill value in Input fields before displaying ADOBE FORM

    Hi to all,
    Please can anyone tell me how to fill the entry in ADOBE FORM before displaying?
    I have written a program to generate ADOBE FORM, but I need while displaying ADOBE FROM some input field should already be filled by value and can not be changed.
    Please can anyone tell me how to do that in program?
    Below is the program.
    DATA: fm_name           TYPE rs38l_fnam,
            fp_docparams      TYPE sfpdocparams,
            fp_outputparams   TYPE sfpoutputparams.
    Parameters: p_pdf_form_name type fname.
      fp_docparams-langu   = 'E'.
      fp_docparams-country = 'IN'.
      fp_outputparams-preview = 'X'.
      CALL FUNCTION 'FP_JOB_OPEN'
        CHANGING
          ie_outputparams = fp_outputparams
        EXCEPTIONS
          cancel          = 1
          usage_error     = 2
          system_error    = 3
          internal_error  = 4.
      CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
        EXPORTING
          i_name     = p_pdf_form_name
        IMPORTING
          e_funcname = fm_name.
      E_INTERFACE_TYPE           = E_INTERFACE_TYPE
      CALL FUNCTION fm_name
        EXPORTING
          /1bcdwb/docparams        = fp_docparams
      IMPORTING
        /1BCDWB/FORMOUTPUT       = fp_outputparams
        EXCEPTIONS
          usage_error           = 1
          system_error          = 2
          internal_error           = 3.
      CALL FUNCTION 'FP_JOB_CLOSE'
       IMPORTING
        E_RESULT             =
        EXCEPTIONS
          usage_error           = 1
          system_error          = 2
          internal_error        = 3
          OTHERS               = 4.
    I shall be thankful to you for this.
    Regards
    Pavneet Rana
    Edited by: pavneet rana on Jul 25, 2011 2:57 PM

    Hello,
    you need to provide the information via the interface, which you create for the Adobe form.
    And then pass this values via the following function module inside your generation report.
    CALL FUNCTION fm_name
    check standard report : FP_EXAMPLE_01 as an example!

  • How to create the sub type field in hr abap infotype

    hi ,
        how to create the sub type field in hr abap infotype.
    regards,
    venkat.

    Try like this also
    creating of infotype please follow these steps ...
    Step 1: Create Infotypes
    i. Goto Transaction PM01 – To create Infotypes:
    ii. Enter the Infotype Number and say create all.
    iii. The following message would display:
    i. PSnnnn Does not exist. How do you want to proceed?
    iv. Click
    v. A maintain Structure screen appears.
    Fill in the short text description and the PS structure of the Infotype.
    Since the fields Personnel No, Employee Begin Date, End Date, Sequential Number,Date of Last Change, Name of user who changed the object are available in the PAKEY and PSHD1 structure, define the PSnnnn structure with only the fields you required.
    vi. Once the PS Structure is created, save and activate the structure.
    vii. In the initial screen of PM01, now click on .
    Create a new entry for the infotype.
    Fill in the values as mentioned below and save.
    Infotype Characteristics:
    Infotype Name of the infotype_ Short Text: __Short Description________
    *General Attributes :
    Time constraint = 1
    Check Subtype Obligatory
    Display and Selection:
    Select w/ start = 3 “Valid record for entered data
    Select w/ end = 5 “Records with valid dates within the period entered
    Select w/o date = 6 “Read all records
    Screen header = 02 “Header ID
    Create w/o end = 1 “Default value is 31.12.9999
    Technical Data:
    Single screen = 2000
    List screen = 3000; List Entry Checked.
    viii. In the initial screen of PM01, now click on .
    Choose the infotype entry in the list.
    Fill in the values as mentioned below and save.
    Technical Attributes:
    In tab section,
    The following attribute values are given:
    Applicant DB Tab = PAnnnn “Infotype Name
    Subtype field = SUBTY
    Subtype table = T591A
    Subty.text tab. = T591S
    Time cnstr.tab. = T591A
    Prim. /Sec. = I Infotype
    Period/key date = I Interval
    and .
    ix. Infotype Screen Modification:
    Edit Screen 2000 from PM01 for the Infotype.
    ABAP Editor for the Infotype Program MPnnnn00 will be displayed.
    Click . Flow Logic will be displayed. There string coding of your own logic.
    Regards
    Pavan

  • How to enable the screen after triggering the error message

    Hi All,
    we have a tcode IW31, in that one field(WBS element -PROID) is not mandatory. so we have written the following code to make it mandatory in a user exit EXIT_SAPLCOIH_010.It's triggering the error message, but it is going into disable mode. Please sugget me how to enable the screen after getting the error message triggering.
    if not caufvd_imp-proid is initial.
      select single * from t350 into wa_t350
              where  auart    = caufvd_imp-auart
                and  imord    = 'X'.
      if sy-subrc is initial.
        pspel = caufvd_imp-proid.
      else.
        call function 'CONVERSION_EXIT_ABPSP_OUTPUT'
             exporting
                  input  = caufvd_imp-proid
             importing
                  output = l_posid.
        concatenate text-t10 l_posid text-t11
                    into l_textline1 separated by space.
        message i208(00) with l_textline1.
      endif.
    else.
      message e208(00) with 'Please maintain WBS element in Location Tab'.
    endif.
    Thanks

    Hi,
    Instead of error message use status message like
    message s208(00) with 'Please maintain WBS element in Location Tab'.
    Leave to screen sy-synnr.
    This will allow to move to the screen and have in enable mode.
    WIth Regards,
    Dwaraka.S
    Edited by: Dwarakanath Sankarayogi on Feb 13, 2009 7:46 AM

  • How to fill the "budget" in an initiative in SEM BSC

    Good Afternoon for all!
    We have a Balanced Scorecard implemented in SAP SEM BSC, using SAP BW.
    Our Balanced Scorecard actually manages ratios, objectives, perspectives, strategy and scorecard.
    Now, we are trying to use "iniatiatives" and we have using the SEM BSC wizard, through the web interface.
    When defining the initiative everything goes ok, we define the initiative , and then we assign it to an objective.
    We have also installed the infocube "0SEM_C02" which we have the understanding that it stores the information concerned to initiatives.
    I have also build a SEM BPS layout and planning area for this infocube (0SEM_C02) in order to fill the infocube with information (manually entered).
    But after all these, the information does not appear for the "budget" when displaying the Balanced scorecard.
    When displaying an initiative it displays:
    -Definition
    -Duration
    -Priority
    -Status and score
    -Milestones
    -Team members
    -Objectives
    -Budget (<-----E M P T Y !! )
    I do not understand, how to fill the "Budget" data for an initiative. Because we have fill all the information regarded to the initiative included above, but the budget is very important for us, and as i said before, we have installed the infocube 0SEM_C02, we also created a planning area for this infocube in BPS, we have created a planning layout for this infocube, and we have entered some values to this infocube.
    Is there any special condition or something special to do, in order to fill the budget for an initiative in SAP SEM BSC??
    How can we see in the BSC the budget for an initiative, or fill the value???
    We will appreciate any help for this issue.
    Thanks in advance for your valuable help.
    Carlos Espana
    Cementos Progreso
    Guatemala

    Carlos,
    This is the Forum for SAP Strategy Management.
    There is another Forum specifically for SEM-BSC questions.
    Go to the SAP Community Network Forums > SAP Solutions > SEM-BSC
    Please repost your question there for an answer.
    Regards,
    Bob

  • How to fetch the Business area field value from MIRo into report

    Hi,
    I want to create a report for MIRO with payment details.
    How to fetch the business area field value in to report.
    What is the table name. I verified it is storing in structure. Which is the right table for fetching that value with reference to MIRO.
    After that, how to find the accounting document for payment and check details.
    What are the table names and field names. What we can get from PAYR table.
    With regards
    Lakki

    Dear,
    For Bussiness area
    RKPF-GSBER

  • How to fill the details tab in tv shows with description

    Can anyone tell how to fill out the details tab metadata in the tv shows section of iPad? The tv shows purchased from the iTunes Store have the details tab beside the episodes tab filled in with helpful description about the show. Isn't there a way to do that manually for personally downloaded tv shows? It's not possible to buy every content from the iTunes Store. Please help if anyone know how to add description to tv show details.

    see your duplicate thread : How to fill the details tab in the iPad tv shows with description

  • HT204053 I don't know how to fill the process for the renew option?

    How can I fill the blanks for renew process ?

    The blanks for what 'renew process' ? What screen are you viewing and what are you trying to renew ?

  • How to cut the zeros after the decimal point ?

    Hello everybody,
    does anyone know a solution how to cut the zeros after the decimal point at at CHAR data field?
    For example the field
    &RM06P-PRMG1&
    This is a char field in the database, so that the command
    &RM06P-PRMG1(.0C)&
    doesn't work.
    At the moment the output on the form is like that
    124,000
    It shoud be like that
    124
    It would be great if anyone could help me!
    TIA!
    Strobbel

    Hi Strobbel,
    If you are working on standard sapscript, first make a zcopy of it, do the modifications in that and assign the new form to the output types in tcode NACE.
    First you need to create a program to write the logic, so go to tcode SE38 , create a new program (say zremove_zero) with Program type Executable.
    Now you will see ABAP Editor with statement;
    Report zremove_zero.
    Add the following lines below the report statement.
    *&      Form  remove_zero
    *       text
    *      <--lv_AMT  text
    FORM remove_zero  CHANGING lv_amt.
      DATA p_amt TYPE p.
      MOVE lv_amt TO p_amt.
      MOVE p_amt TO lv_amt.
    Condense lv_amt.
    ENDFORM.
    Now save and activate the program.
    Now open the zcopy of your script and Just above the statement  &RM06P-PRMG1& write the following lines;
    /: perform remove_zero in program zremove_zero
    /: changing &RM06P-PRMG1&
    /: endperform.
    Now you can see your amount printing without decimals.
    Try and let me know, hope i have guided you clearly.
    Regards
    Karthik D
    P.S.: I advice you to take help from an ABAPER.

  • How to get the object class field value in CDHDR table for vendor

    hi
    how to get the object class field value in CDHDR table for vendor

    Try KRED/KRED_N as object class in CDHDR for Vendor.

  • How to fill the whole screen of my iMac with the photos included in an iDVD project. (iDVD v. 7.1.2)

    How to fill the whole screen of my iMac with the photos I included in an iDVD project. (iDVD v. 7.1.2). I mean, during playing the burned dvd.
    When I do "Enter Full Screen", the slide show fills the screen but the photo itself remains in the middle with a wide black border filling the rest.
    Any cure for this ?

    Hi
    In iDVD Preferences - Turn off - TV-Safe area - and the Photos will fill the full area with just letterboxing or pillars as max.
    Then "Save as a DiskImage" and test this and see if this plays better - before burning DVDs that's not as You want them.
    Bengt W

  • How to hide the select-options fields on radiobutton select in webdynpro

    hi
    Could you please help how to hide the select-option fields in webdynpro
    there are four radio buttons
    for every radiobutton there is corresponding the select_option filed is associated to it
    user as only provision select  one radio button and reset of the select-option fileds should be hidden
    which ever the radio button is selected corresponding the select-options fileld should be displayed
    please find the attachement below

    Hi Nine,
    To hide select options you should use interface method REMOVE_SELECTION_SCREEN_ITEM of IF_WD_SELECT_OPTIONS.
    Sample code :
    Write the below code in the Event handler of Radio Button.
    DATA lv_r_helper_class TYPE REF TO if_wd_select_options.
    lv_r_helper_class = lo_interfacecontroller->init_selection_screen(
    lv_r_helper_Class->REMOVE_SELECTION_SCREEN_ITEM(exporting i_id = 'Select_option1_id1').
    This will hide first select option of your screen.Similarly pass select_option_id2 to hide it and so on.
    Regards,
    Ravikiran.k

  • How to fill the gaps in SAP Fico configuration

    Hi Guys,
    Can anyone please explain me that how to fill the gaps in SAP FICO implementation project
    Thanks in advance
    Vasu

    Hello,
    Perhaps you might find some useful info here http://help.sap.com/saphelp_sm70ehp1_sp23/helpdata/en/36/f1a5e16cde4121acc69a91728b9082/frameset.htm
    Regards,
    Paul

Maybe you are looking for

  • How to sign a hybrid extension?

    Hi, I need to package and sign a hybrid extension (an extension that includes a CSXS-based Flex extension and a native C++ event adapter for Illustrator). Following the instructions given here: http://help.adobe.com/en_US/extensionmanager/cs/using/pa

  • EJB question: How to use abstract class in writing a session bean?

    I had written an abstract class which implements the session bean as follow: public abstract class LoggingSessionBean implements SessionBean { protected SessionContext ctx; protected abstract Object editRecord(Object obj) throws Exception; public Log

  • Ora-01440 on modifying column - urgent needed

    Hi we have following table SQL> desc VULNERABILITY_REG_PERIODS Name Null? Type CLIENT_ID NOT NULL NUMBER(10) ASSOCIATED_FAMILY NUMBER(7) HCP VARCHAR2(8) STAFF_TYPE VARCHAR2(2) DATE_ON_PROTECTION NOT NULL DATE DATE_OFF_PROTECTION NOT NULL DATE SECTOR

  • Is Firefox 3.0.6 available on arch?

    Is there an upgrade for firefox 3.0.6?  I know arch uses grandparadiso.  Where can I get it? Thanks

  • Html / css challenge

    Hi, I am no pro at html or css but I cannot work out why the layout of the page I am creating is such a mess. I am trying to manipulate the following myspace profile page: http://www.myspace.com/billywingrove To look like this: http://billywingrove.c