How to set parameter id for a field, which is in disable mode ?

Hi,
I Have to set parameter id for field ledger for transaction FAGLB03, which is in disable mode, i have to set it through program,please let me know how to set it.
Thanks.

Say i have 5 rows then
for(int i=1;i<=5;i++){
String Newpath = updatepath(eval("{{obj.libraryname.web_input_text_fieldname}}"),i)
web.text_area(Newpath).setText("Text to be set")
Below function is used to update my path
public String updatepath(String path,int i) throws exception {
String FPath = "";
if(i<2) {
FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
} else {
FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+(i-1)+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
return Fpath
anyother way to update path and set the fields in mutiple block is appreciable
thanks
Suresh

Similar Messages

  • How to set different icons for different windows which is seen in the top left corner?

    Hi
    How to set different icons for different windows which is seen in the top left corner? I know when building exe there is a option to edit icons or add icons and that icon is default for all the windows in the project. But i want different icons for different windows which is possible in VB.
    Is there any way to set icon by calling any dlls.
    Thanks & Regards
    Samuel J
    [email protected]

    Hi Sam,
    no problem. See the attachment.
    Mike
    Attachments:
    TestIcon_LV85.zip ‏44 KB

  • How to update the path for a field which is of type textarea

    Hi,
    1.I have multiple record block,i need to update the textarea field in this multi entry block.I have put a for loop to achieve the same,however i'm able to update the path for text field,checkbox,selecttype,but am unable to update the path for field which is of textarea.Please suggest.
    2. Also i have another problem which occurs randomly.although i have record for a button click event in  my property file,button click is not happening during the playback.am getting error asVariable "obj.libraryname.web_button_BTN_1" not found for string:
    please not i have entry for the above button in my property file.
    Please suggest.

    Say i have 5 rows then
    for(int i=1;i<=5;i++){
    String Newpath = updatepath(eval("{{obj.libraryname.web_input_text_fieldname}}"),i)
    web.text_area(Newpath).setText("Text to be set")
    Below function is used to update my path
    public String updatepath(String path,int i) throws exception {
    String FPath = "";
    if(i<2) {
    FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
    } else {
    FPath = path.substring(0, path.indexOf("'", path.lastIndexOf("@id=")+5))+(i-1)+path.substring(path.indexOf("'", path.lastIndexOf("@id=")+5));
    return Fpath
    anyother way to update path and set the fields in mutiple block is appreciable
    thanks
    Suresh

  • How to set screen properties for Customer fields in PO(Enhanced using BADI)

    Hi All,
    I have added one custom tab with seven fields in the PO item level using the BADI 'ME_GUI_PO_CUST  and ME_PROCESS_PO_CUST'.
    Now i want to change the screen property dynamically. According to some calculation i need to change the customer fields in display mode and change mode. when ever it is in change mode i need to set the fields as mandatory.
    How can i implement this logic using this BADI. Please help in solving this issue.
    Best regards,
    Kannan. B

    Hi,
    Try adding the code in the PBO part of your custom program used for the custom screen which you have created and added inside the BADI.
    Regards,
    Harish

  • MM06E005 - how to set screen attributes for custom fields?

    Hi all,
    I have implemented enhancement MM06E005. I have added my custom fields to CI_EKPODB.  I have created and activated all the dynpros.  I modified subscreen 0111 (items) to contain my new custom fields.  I have activated the function exits (016,017,018) for the item screens.  I am able to save data using the new custom fields on subscreen 0111.
    What I am having trouble with is modifying the screen attributes for the new custom fields that I placed on subscreen 0111. I know it should be in exit 016(PBO) and I need to check the action type.  I tried a "loop at screen" but my fields were not there. 
    How do I modify the screen attributes?  Also, can I change the "Tab" text from "Customer Data" to be something else?
    Any help would be appreciated.
    Thanks, Mark

    Hi,
      In the PBO of the screen 0111, create a module. And in that module you can do LOOP AT SCREEN..where the screen elements will be available..
    Thanks
    Naren

  • How to set old content for a field when cancel?

    Hallo,
    i have a jdialog form where i can change the content of a field.
    when i close the form with cancel i will bring the old content back.
    how can i do that?
    thanks in advance. any help is appreciated.

    Huh? Just don't update the content when the dialog is dismissed by pressing 'Cancel'.
    To get better help sooner, post a SSCCE that clearly demonstrates your problem.
    db

  • DI: How to set a category for userdefined fields?

    Hi,
    I've created some userdefinded fields using DI API and now I would like to assign them to a specific category. By default they are in category "General".
    How to do this programmatically?
    Thanks,
    Ronny

    Ronny,
    If I understand your question, the "category" of a user-defined field is based on a combination of the Type and SubType properties of the UserFieldsMD object. Type is a BoFieldTypes enum and SubType is a BoFldSubTypes enum. The trick is that not all Type and SubType combinations are permitted. In the DI documentation, go to the UserFieldMD object and drill into the SubType property. This will give you a matrix of allowed combinations and their application "category".(At least in the 6.5 documentation.)
    The UserFieldMD object is a little temperamental so make sure you have the latest patches before digging into it.
    Cheers,
    Corbin

  • How to use BAPI extension for updating field which is not in BAPI stracture

    I am doing a conversion for control cycle create. The data is maintained in DB Table "PKHD". i have to update 12 fields threre through BAPI "BAPI_KANBANCC_CREATE". there are 11 fields in BAPI structure. but 1 field called"BERKZ" is not there . How can i update it through EXTENSION.

    Hi ,
    in the bapi extension check one structure with name BAPIPAREX will available..
    you need to pass custom structure in that..
    ands conactenate 12 field of your structure and pass in to value1 in bapirex structure and append.
    go to se11 and enter >bapiparex> check where it is used -->see the zprogram and check how it is used the add your code according to that..
    Regards,
    Prabhudas

  • How to set a pageBreak for a panel which is scrolling vertically ?

    HI,
    my swing application has a panel which 'll scroll vertically dynamically according to the input.It has to get printed.I used panel.printAll(g) in the printable interface.But the problem is, it is printing only that is visible in the panel.The remaining image/data is not printing.Help me to set the page Break and print the whole panel.

    Quit double and triple posting a questions: [http://forums.sun.com/thread.jspa?threadID=5365422&tstart=0]
    Learn how to use the forum properly. There is an "edit" icon on the top right of you posting that allows yous to edit your question.
    I'm not going to bother to answser your questions until you bother to learn how to use the forum properly.

  • How to set F4 help for an inputfiled of BSP page?

    hi friends,
    I have to set F4 help for a Field in my BSP page. for this i am doing like this.
    Oninitialization Event....
    tables : t001p ,pa0001 ,t554t.
    data : begin of it,
            awart like t554t-awart,
            atext like t554t-atext,
           end of it.
    data : it_t554s like it occurs 0 with header line.
    parameter : k_pernr like pa0001-pernr.
    data : werks like pa0001-werks,
           btrtl like pa0001-btrtl,
           abs_grp like t001p-moabw.
    clear it_t554s.
    refresh it_t554s.
    select single werks btrtl into (werks ,btrtl) from pa0001
                        where pernr = K_pernr.
    select single moabw into abs_grp from t001p where
                              werks eq werks and btrtl eq btrtl.
    select awart atext from t554t into corresponding fields of it_t554s
                                   where moabw eq abs_grp..
    append it_t554s.
    endselect.
    now it_t554s contails the values to display F4 help in BSP page inputfield.
    how to assign this as F4 help to inputfield....
    I saw some threads. It's getting me to confuse...
    I am new to this topic...
    plz help me.........
    Regards,
    Shankar.

    solved

  • How to set default values for boolean columns

    I'm trying to deploy some content types and columns into a site with a feature. All it's ok, except that I'm trying to set a default value for boolean columns with no success.
    I've tried to set default value at column level:
    <Field ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DisplayName="Se publican noticias en español"
    Type="Boolean" Hidden="FALSE" Group="Columnas ShaCon" >
    <Default>TRUE</Default>
    </Field>
    and at content type level:
    <FieldRef ID="{EFE23A1D-494E-45cf-832E-45E41B17F0CF}" Name="ScopeSpanish" DefaultValue="TRUE" Required="TRUE" />
    But in any case, when i create a new item with this content type, default value is applied.
    Can anyone tell how to set default values for boolean columns?
    Thanks in advance,
    Regards,
    Sergio

    In the field definition you can set
    <Default>1</Default>
    or
    <Default>0</Default>
    How to set the default value Null?

  • How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?

    Hi All,
    How to create a Platinum,Gold and Silver Customer and how to set different price for a single material based on customer?
    Assume Material is Pen.
    While creating Sales Order in VA01 how to bring different price for the same material for Platinum,Gold and Silver Customers.
    Kindly help me out.
    Thanks,
    Renjith Jose

    A good place to start is http://www.javaworld.com/javaworld/javatips/jw-javatip34.html
    Also, do a search in this forum on HttpURLConnection. That class allows you to use POST method to send form data to a web server.
    "Hidden" variables are only hidden in HTML. The HTTP that gets POSTed to the web server doesn't distinguish between hidden and not hidden. That is, the content you would write to the HttpURLConnection.getOutputStream() would be something like:
    hidden=1&submit=ok(Of course, the variable names would depend on what the web server was expecting from the form.)
    Also, be sure to set the Content-Type request parameter to "application/x-www-form-urlencoded"

  • How to set white spaces between the fields in dataset??

    Hi all,
    I am writing a set on information to from infotypes to a text file. Its a fixed width file. How do set white spaces in the fields for dataset?
    Example:
    TYPES: begin of header,
                    filler(40)  type c,
                    id(3)        type c,
                    filler2(7) type  c,
                    delimiter  type  c,
                 end of header.
    DATA header type header.
    header-filler1 = ' '.
    header-id       = '100'.
    header-filler2 = ' '.
    header-delimiter = cl_abap_char_utilities=>newline.   ( do it to get a new line)
    my_table = header.
    append my_table.
    DATA: out_file(256) type C,
          codepage_ref type ref to CX_SY_CONVERSION_CODEPAGE,
          out_char type c,
          size type i,
          insert_string type string,
          insert_size type i.
      out_file = filename.
      open dataset out_file for output in text mode ENCODING NON-UNICODE.
      LOOP AT my_table.
        size = strlen( my_table ).
        insert_string = ''.
        DO size TIMES.
          offset = sy-index - 1.
          try.
              out_char = my_table+offset(1).
              IF out_char = SPACE.
                CONCATENATE insert_string '' INTO insert_string SEPARATED BY SPACE.
              ELSE.
                CONCATENATE insert_string out_char INTO insert_string.
                transfer insert_string to out_file NO END OF LINE .
                insert_string = ''.
              ENDIF.
            catch CX_SY_CONVERSION_CODEPAGE.
              insert_size = strlen( insert_string ) - 1.
              insert_string = insert_string(insert_size).
          endtry.
        ENDDO.
       transfer CL_ABAP_CHAR_UTILITIES=>NEWLINE TO out_file NO END OF LINE.
      ENDLOOP.
      close dataset out_file.
    How do I get to insert the space for filler1 and filler2?
    Edited by: Siong Chao on Oct 4, 2011 4:56 AM
    Edited by: Siong Chao on Oct 4, 2011 8:27 AM
    Edited by: Siong Chao on Oct 4, 2011 8:29 AM

    problem lies in the open dataset codes
    Used:
    open dataset out_file for output in text mode encoding non-unicode message msg.
    if sy-subrc= 0.
    loop at my_table.
    transfer my_table to out_file
    transfer cl_abap_char_utilities=>newline to out_file no end of line.
    endloop.

  • How to create value request for screen field text box tt1

    How to create value request for screen field text box tt1
    i have a text box name tt1,
    i want f4 help for that .
    remember i am asking for screen i.e done from screen layout not selectio-screen.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla,

    Hi,
    Create one Search Help in the SE11 for the particular Field that u want to display. In the Screen(Transaction SE51),For that Text Box in the Attributes,in Dict Tab ->Search Help Field give that Search Help Name.
    For Eg,
    If u want Purchase Order Numbers in that F4 Help.Create one <b>Search Help</b> by giving Table Name as <b>EKKO</b> & <b>Search Help Parameter</b> as <b>EBELN</b> with Lpos & Rpos as 0 & 1.Save & Activate it.
    Give this Search Help Name in Dict Tab ->Search Help Field of that Screen Attributes.
    Regards,
    Padmam.

  • Need to set default values for the fields plant and location in ME21N

    Hi All,
    i need to set default values for the fields plant and location in ME21N tcode.
    In accout assignment if we give 'A' then we need to create asset by clicking the Asset tab,there you have the fields plant and location.
    How to resolve this?
    Thanks in Advance

    hi .
    i needed to set default strorage location and plant in personal setting  in me21n.
    i solve it with this way.
    go to program SAPLMEPERS in se38.
    create new function in output with the sample name :MODULE ZTEST_001 OUTPUT.
    in this module write:
    if MEPOITEM_PROP-WERKS is INITIAL and  MEPOITEM_PROP-LGORT is INITIAL.
    MEPOITEM_PROP-WERKS = '1000'.
    MEPOITEM_PROP-LGORT = '0032'.
    endif.
    this is the solution.
    best regards.
    maryam

Maybe you are looking for

  • How to insert a conditional image into a report

    Hi I am fairly new to HTML DB, but I have managed to create my first application. I need a little help with one report. One of the columns in the report contains Y, N or R. The customer wants me to display a different coloured image depending on the

  • Flex 4.5.1 - iOs - iPad 1 - Loading images bug

    Hi successfully adapt a standard flex project for the web to a mobile application with some adjustements. Congratulations for Adobe team for this fantastic work ! My issue i am faced is a bit strange. When i run in debug mode my application on my iPa

  • The best word processing app to use on ipadmini?

    What is the best app to download to use as a multipurpose word processing program for reports, letters etc?

  • IDOC to JDBC using Synchronous

    Hi all, I am working idoc to jdbc interface,here i have to get response from reciever jdbc when iam creating vendor details in jdbc system.My requirement is i have to get this by using synchronous message. Please help me on this. Thanks in Advance. R

  • Lables in chart

    I have added a pie chart to a page with about 14 diffirent categories. The problem is that the label overlaoe each ther for that category whose data is relativley less then other category e.g cat1 2 cat2 100 cat3 200 So the label of cat1 will overlap