Mandatory Fields displaying in the table

Hi
In my create Page  , fields are present with input fields and DROP DOWN BY KEY AND rADIO GROUP.
In that some of the fields are mandatory.
If i enter values in that create page, it has to show fields in the table.
But iam having only mandatory fields should come in the table.
Our Abapers created table for the Mandatory fields only.
Iam having doubt how the remaining fields(not showing in the table) will connect to the database.
Will any one explain me on this.
Please help me.
Regards
Sushma

Iam trying to connect my web dynpro application to R3 Database.
Iam having list screen consistts of Create and Export buttons and table.
Table Fields :
Allowance Code , sub code ,Type , Level , expense Type , amount
After clicking Create button ,
the screen consists of save and Cancel buttons.
Allowance Code -- (Input Field)
Sub Code -- (Input Field)
Period Type -
(Dropdown by key)
Type -
(Radio button Group)
Level --- (Dropdown by key)
Expense Type -(Dropdown by key)
Trip - (Dropdown by key)
Currency - (Dropdown by key)
Amount --(Input Field)
In the Create screen all these fields are present. But in the table in the List Screen it is taking only mandatory Fields.
For this our Abapers created
Fun Mod : Zup_Allowance_Input
Table : ZMSTR_ALLOW
Iam getting error in this code under IdataType in this "Save Button ".
Can any one help me where i went wrong in this code.or else please provide the Code for this.
public void onActionSave(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionSave(ServerEvent)
try{
String str1=wdContext.currentStdAllowanceElement().getAllowanceCode();
String str2=wdContext.currentStdAllowanceElement().getSubCode();
IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("PeriodType").getDataType();
String index=wdContext.currentStdAllowanceElement().getPeriodType();
String str3=wdThis.getTextFromSimpleType(dataType,index);
wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str3);
String arr[]={"Fixed","Actual"};
for(int i=0;i<arr.length;i++)
IPrivateEtrecStdCreateView.ICheckElement e=wdContext.nodeCheck().createCheckElement();
wdContext.nodeCheck().addElement(e);
e.setType(arr);
IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("").getDataType();
String index=wdContext.currentStdAllowanceElement().getLevel();
String str5=wdThis.getTextFromSimpleType(dataType,index);
wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str5);
IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("ExpenseType").getDataType();
String index=wdContext.currentStdAllowanceElement().getExpenseType();
String str6=wdThis.getTextFromSimpleType(dataType,index);
wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str6);
IDataType dataType = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Trip").getDataType();
String index=wdContext.currentStdAllowanceElement().getTrip();
String str7=wdThis.getTextFromSimpleType(dataType,index);
wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str7);
IDataType datatype = wdContext.nodeStdAllowance().getNodeInfo().getAttribute("Currency").getDataType();
String index=wdContext.currentStdAllowanceElement().getCurrency();
String str8=wdThis.getTextFromSimpleType(dataType,index);
wdComponentAPI.getMessageManager().reportSuccess("wetreer "+str8);
String str9=wdContext.currentStdAllowanceElement().getAmount();
Zup_Allowance_Input input=new Zup_Allowance_Input();
input.setAllow_Opt("C");
input.setAllowance_Code(str1);
input.setSubcode(str2);
input.setType1(str3);
input.setLevel1(str5);
input.setExpense(str6);
input.setCurr_Key(str8);
wdContext.nodeZup_Allowance_Input().bind(input);
wdContext.currentZup_Allowance_InputElement().modelObject().execute();
String str10=wdContext.currentOutputElement().get();
if(str10.equalsIgnoreCase("3"))
String errorMessage = "Inserted Successfully !";
IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
windowDialog.open();
windowDialog.setWindowPosition(300,250);
}if(str10.equalsIgnoreCase("2"))
String errorMessage = "Duplicate Value !";
IWDEventHandlerInfo windowHandler = wdControllerAPI.getViewInfo().getViewController().findInEventHandlers("OK");
IWDConfirmationDialog windowDialog = wdComponentAPI.getWindowManager().createConfirmationWindow(errorMessage, windowHandler, "OK");
windowDialog.open();
windowDialog.setWindowPosition(300,250);
}catch(Exception e)
wdComponentAPI.getMessageManager().reportSuccess(e.toString());
//@@end
//@@begin javadoc:onPlugFromEtrecStdView(ServerEvent)
/** Declared validating event handler. */
//@@end
public void onPlugFromEtrecStdView(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onPlugFromEtrecStdView(ServerEvent)
wdContext.currentStdAllowanceElement().setAllowanceCode("");
wdContext.currentStdAllowanceElement().setAmount("");
wdContext.currentStdAllowanceElement().setSubCode("");
//@@end

Similar Messages

  • Mandatory fields passing to the structure POCOND in BAPI_PO_CREATE1

    Hi,
    Please help me that what are the mandatory fields passing to the structure <b>POCOND</b> in <b>BAPI_PO_CREATE1</b>. I am using BAPI to create the PO based on certain conditions. But after creating the PO the condition values are not updating properly. Currently i am not passing any values to the structure.
    Your solutions should be highgly appreciated. Please help me this issue as early as possible
    Regards,
    Uday

    Hi ,
    In my current requirement i m using BAPI_PO_CREATE1 to create the PO.
    I am passing all the line item detials to the BAPI.
    For some of the material rounding value are maintained in MM02 on MRP view.
    If the line item material maintains rounding value then instead of taking the PO item quantity, it is taking the rounding value that has maintained in MM02. So to control that i have done the forceful updation using the update statement in one of the exit on BAPI_PO_CREATE1.
    Here i m facing one problem. Now i can able to udpate the PO quantity correctly.
    But the Condition value maintained in the Condition View still taking the rounding value for calculating.
    To control this also i am using update statement on KONV table and the field is KAWRT. But this value is not updating.
    Please help any one that in which table the the condition value is going to update and wht are the criteria to update the  Condition Value field.
    <b>Points should allocate for suitable answer.</b>
    Thanks
    Uday

  • Cannot display all the tables of the schema!!!

    Hi:
    I use the oracle sql developer on the windows xp, I found that the tables tab cannot display all the tables of the schema owner, I use the sql "select count(*) from user_tables" I found the result is more than the tab can be display, and I also press the "show more" already.... does anyone can help me ???

    Similarly, I have 852 tables owned by the connected user (selected count from user_tables and checked the user tables report which has this many records returned), but when I double-click on the "Show More" and select Show All, I only get approximately 375 tables listed.
    It doesn't help that the sorting is different - ie ASF_ comes before ASFB in the connection pane but the other way around in the report.
    However, it looks as though the problem is that tables that are not analysed (based on the report data in DATE_LAST_ANALYZED) are not being displayed under the Table node.

  • While Creating New Insert Form Existing Data Display from the Table

    Hi
    I am New To Sun Java Studio Creator and New to Java Also While Creating New Insert Form Existing Data Display from the Table while i am Run the Form. Can any one help me to Solve this one

    Dear Giri,
    As per your Advise, Literally I have Search the Properties for the Components to set value Null, but I am Unable to find the Value in Properties palate. I have tried in various options like
    In the Properties Palate
    TextField1_onselect use Value null
    TextField1_text I have selected use Value option and I have manually Keyed-in null;
    In the JSP Page, I have manually keyed in the null value below said
    <ui:textField binding="#{BI.textField2}" id="textField2" style="position: absolute; left: 240px; top: 96px" text="#{BI.bDataProvider.value['ISSUENO'] = null}"/>
    <ui:textField binding="#{BI.textField2.Value = null }" id="textField2" style="position: absolute; left: 240px; top: 96px" text="#{BI.bDataProvider.value['ISSUENO'] = null}"/>
    At last I am Failure. I am ignorant of it. Can you please help me on this where I have to set null value for the components? I will be very kind of you

  • Problem while displaying all the table names from a MS Access Data Source.

    I started preparing a small Database application. I want to display all the Table Names which are in the 'MS Access' Data Source.
    I started to executing by "Select * from Tab" as if in SQL.
    But i got an error saying that "Not able to resolve Symbol 'Tab' in the query".
    Please let me know how can i display all the table Names in the MS Access Dats Source.

    Here i am developing the application in Swing using JDBC for accessing the database.
    I want to display all the Table names from the data source in a ListBox for easy selection of tables to view their details.

  • I've got the labview vi written to read my IMU data from a serial port in COM1 and it displays onto the table on the front panel. I'm having trouble getting this data onto an excel spreadshee​t. Any ideas?

    I've got the labview vi written to read my IMU data from a serial port in COM1 and it displays onto the table on the front panel. I'm having trouble getting this data onto an excel spreadsheet. Any ideas? Right now my data will collect one reading instead of continuously reading my IMU which displays data in a continuous stream.
    Thanks
    Attachments:
    Read_IMU_Drew.vi ‏21 KB

    Hi
    Your vi is in 2009 version, which i am unable to open in 8.6
    However, if you want your data to be saved in excel sheet, here is the VI
    Somil Gautam
    Think Weird
    Attachments:
    save to excel.vi ‏12 KB

  • Read and display the field values in the table control

    Hi Experts,
    I am new to the Table Control. I have created table control using the wizard where i have mentioned the ztable while creating which consist of the following fields.
    Item Number
    Material number
    Material Description
    Net Price.
    I would like to retrieve the material description, Order quantity and Netprice based on the selection of the material number from the table control field.
    Thanks in advance.
    Sunil Kumar.

    Hi,
    Try to implicate the following code to your requirement..
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
      LOOP AT itab INTO wa_itab.
       CHAIN.
        FIELD wa_itab-item.
        FIELD wa_itab-material MODULE fetch_desc_price ON CHAIN-REQUEST.
        FIELD wa_itab-mat_desc.
        FIELD wa_itab-price.
       ENDCHAIN
        MODULE modify_itab.
      ENDLOOP.
    Inside the module.
    MODULE fetch_desc_price INPUT.
    SELECT maktx FROM makt INTO itab-mat_desc
    WHERE matnr = itab-material.
    SELECT STPRS or resp fld from MBEW
    INTO itab-price WHERE matnr = itab-material.
    ENDMODULE.
    MODULE modify_itab INPUT.
    MODIFY itab from wa_itab INDEX <table control name>-CURRENT_LINE.
    ENDMODULE.

  • Fieldname in not being displayed in the table maintenance

    Hi Experts,
                     I have created a table maintenance for a custom table.The table contains 10 fields out of which first 3 are key fields.
    on the 3rd key field i have supplied F4 help so as to populate the 4th field automatically based on the selection of 3rd field.
    everything is working fine but last 6 'fieldname' is not being displayed on the column bar.instead of fieldname there is '+' sign on the column. And i have checked in layout(screen) also only first four fields being displayed.
    plz help.
    Thanks n Regards,
    Mukesh

    Hello Mukesh,
    As you know, data element or pre-defined data type will be assigned as field type to the fields in a table. If you are assigning the data element, then the data element has the option to give the field label.
    If you are assigning the data element and the field label is empty, then + sign will come. In other case -  if you assigning the pre-defined data type also, the screeen column header will be shown as + sign.
    In both the above cases, you can change the column header manually in the layout.
    Regards,
    Selva K.

  • Data Display in the Table Control

    Hi All,
             Please help me know how to fetch the data from the internal table in to the Table Control.  I have defined the internal table with some fields and wrote the select query to fetch the records from database. But Iam unable to get the idea of how to pass the internal table records into the table control.
    Your suggestion will be appreciated.
    Thanks and Regards,
    Murali Krishna Tatoju

    HI
    if your select query is first operation before the screen is displayed.
    then write the select query in PBO.
    in PBO
    module select
    loop at itab with control tc.
    module transfer_itab_to_tc
    endloop
    in program.
    module select
    select query here and get the data.
    endmodule
    module transfer_itab_to_screen.
    move-corresponding itab to t_tab " here t_tab is strucutre from where the fields on Table control has been taken
    endmodule
    Cheerz
    Ram

  • Fields display in the ALV List

    Hi Experts,
    I am using 3.0f version, in my report i am using function module  LIST_DISPLAY.
    Newly i added 3 fields in the report. But these fileds are comming in the second row. But i want to display in the first row only. report line size is nearly 280.
    But in the 3.0f version, it not accepting more than 255( Line size).
    can any one tell me how to over come this problem.
    Thanks In Advance.
    Ur's
    Harsha.

    Hi,
    At the top of your main report program, there would be a statement
    REPORT ZTEST line-size 255.
    change it to
    REPORT ZTEST line-size 355.
    Best regards,
    Prashant

  • Smartforms table: how to fix the number of rows to be display in the table.

    Hello.
    I´m having problems with a smartform. I have defined a window with 7 cm high. Then I have define a table to print the content of a table.
    I'm using the header, the main area, and the footer. It seems to be ok. But the main area is sizeble. I mean, that if in the table has 2 records, it dispaly the 2 records and inmediatly display the footer. It probably use only 3 cm of the 7 cm defined for the high of the window.
    And I want that the footer of the table would be display at the end of the 7 cm of the window. Is that posible ?
    Please, tomorrow we will have our kick off the module and this is the last issue we have.
    Thanks in advance for your help.

    Better idea wud be to create a WINDOW, just Below you Main window (After table) ..
    In Form Layout (Form Painter) you can fix this Window on any place , Pass the FOOTER text node over there  .. So you will get a Static FOOTER diplay ..
    That what you need ?? Let me know
    Edited by: Lokesh Tarey on Jul 22, 2010 7:15 AM

  • Single Record Form: fields display with the wrong width

    I'm laying out fields on a single record form and notice that the width of the fields displayed when I run the form is less than the width I specify on the "Edit Page Item" page. Here are 3 examples:
    field 1: Display as=text, Width=100, Maximum Width=100, ==> displayed width=76
    field 2: Display as=text, Width=50, Maximum Width=50, ==> displayed width=46
    field 3: Display as=textarea Width=100 Maximum Width=100 ==> displayed width=100
    Anyone know why this is happening? I'm trying to layout the form so that it has a pleasing look. It's hard to get the fields lined up when they don't display according to the widths specified.
    Edited by: Corvette Captain on Aug 9, 2012 3:21 PM

    Hi,
    >
    I'm laying out fields on a single record form and notice that the width of the fields displayed when I run the form is less than the width I specify on the "Edit Page Item" page. Here are 3 examples:
    field 1: Display as=text, Width=100, Maximum Width=100, ==> displayed width=76
    field 2: Display as=text, Width=50, Maximum Width=50, ==> displayed width=46
    field 3: Display as=textarea Width=100 Maximum Width=100 ==> displayed width=100
    Anyone know why this is happening? I'm trying to layout the form so that it has a pleasing look. It's hard to get the fields lined up when they don't display according to the widths specified.
    >
    Setting the Width of the Page Item sets the input elements "size" attribute. HTML rendering based on size attribute is not a precise as you need. You should use CSS for precision. See Compatibility Notes
    Cheers,

  • Why are fields displaying in the Word 7 doc?

    I frequently generate a Word 7 document for review purposes only. Today, after I generated the latest version, a bunch of the fields are displaying in some of the headings. I can't hide them; they are acting like text. I am using the same RH8 settings that I have used for the last month. Does anyone have any ideas what is causing this?

    The Paragraph mark has been enabled (note that they also display at the ends of each paragraph).
    Simply disable it by clicking the Paragraph Mark toolbar button (usually to the right of the Sort icon).
    Good luck,
    Leon

  • Records not displayed on the table view

    We have a scenario as follows :
    I am working on webdynpro project in which i have table on one of my second view.
    when i insert a records in the table by entering its values from the Form on the startView,  it is being shown as populated on the table.
    But once I insert my second record(s) also, the first or the previous records are not visible once i click on the display button.
    Can anyone help me to solve my problem as to how to see all the records inserted in the table on this view.
    Also plz let me know how to physically check the records on the database side.I am using the dictionary tables as my datasource and using SAPDB database.
    Thanx in advance..

    hi
    Try this code.
    Node-->Person
    Attributes of Person-->FirstName,LastName(String)
    ComponentController-->FirstCompController
    FirstView:
    onActionDisplay(...){
    String fname= wdContext.nodePerson().currentPersonElement().getFirstName();
    String lname=wdContext.nodePerson().currentPersonElement().getLastName();
       wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().setFirstName(fname);
       wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().setLastName(lname);
        wdThis.wdFirePlugOut1();
    SecondView:
    onPlug<plugname>(..)
    String fname=wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().getFirstName();
      String lname=wdThis.wdGetFirstCompController().wdGetContext().nodePerson().currentPersonElement().getLastName();
       IPrivateSecondView.IPersonElement elem=wdContext.nodePerson().createPersonElement();
       elem.setFirstName(fname);
       elem.setLastName(lname);
       wdContext.nodePerson().addElement(elem);
    you have to do navigationlinks from FirstView to SecondView and viceversa and also context mapping between ComponentController and views.
    In the second view also create actionbutton for navigating to the firstview and
    Fire the oubound plug also.
    Regards
    sowmya.

  • More than one db field displayed in one table field

    Hi,
    I want to create a report in which in the last column there is displayed more than one result, because to each name there is more than one result.
    The client wants us to display the results in the same line with the name and not one result and one name, and so on.
    I hope you can understand my question.
    I'm a newbie with apex and so I don't know how to create it.

    If it is ok to show the results for a name in one and the same column: Create a function to get the results for a name and use that in your query:
    SELECT name, get_results(name) FROM yourtable
    Otherwise you have to "pivot" your table, see these AskTom entries on how to do that:
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:124812348063
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:15151874723724

Maybe you are looking for