How to Create dynamic checkbox in line item
Dear all,
In selection-screen i have using select-options If i select select-option range, the output will display dynamic check box in line item what range i have select above select options.
Regards,
Baskaran.
Hi,
After fetching data into table, find the number of internal table entries using Describe statement.
Then, use Do loop till w_count becomes w_lines( no. of entries ) incrementing the count for every item.
Similar Messages
-
How can create and change PCA line items.
How can create and change PCA line items.
Please tell me the process and t.codes.If you are in version < 4.7 ee then use 9KE0 tcode for passing profict center entries or trasnafer of balances from one profit center to another.
If you are in new GL regular FI entry like FB50 will hold good for account types "S" -
How to create the no of line items in a PO
Hi Sir,
Please tell me how can i restrict the no of line items to be created in a PO say 20. where i have to do that.
Regards,
KrishanHi Krishan
I think u can not restrict the no of line items to be created in a PO in std SAP .U take a help of the ABAP ppl . They can write a program in such a way that in the ME21N, program checks
the number of line items copied from purchase requisition,If it is more than 10, it should issue an error message.
Regards
Anjali -
How to insert horizontal line dynamically after every line item in sapscrip
Hi All,
I have to insert a horizontal line after every new item in sap script.
How to do this .
In some material there is2 line item or in other line item it ay be more .
How to insert horizontal line dynamically after every line item
Point will be rewarded
Regards
NirajHi Niraj,
You can get your work done by keeping the horizontal line (&ULINE&) after all the item level fields, in this case once each item line is written you will get a horizontal line.
In case you have different fields for the item lines which are optional (not printed every time) then you can have them in an IF....ENDIF condition and below the endif use a horizontal line.
Some thing like this:
/E ITEM_HEADER
IL <TI>Item,,Material,,Description</>
IP <TI>,,,,Quantity,,,,Price,,Price unit,,,,,,Value</>
/ &ULINE(71)&
Let me know if this helps, else please describe your problem with an example.
Luck. -
How to create dynamic window in smartform
<i>HI Floks</i>
my requirement is invoice smartform having few line items .i can print this line items with different categories with dynamically placed in smartfom. there how many items with in particular category print its self . how is it possible to printing .is it possible to print dynamic fields and window without changing driver program and structure .How to create dynamic window.
any body knows reply me fast
thanks in advance ,
sureshHi suresh,
You can create all the windows, but if you go to specific window you will see different tabs like general attributes, output options and conditions. In that conditions tab, you can give condition. so based on that condition, that window will be printed.
Dont forget to reward points if helpful.
regards,
Chandra. -
How to bind a checkbox to an item
I started a small program to add a feature to the item master data. I just add a checkbox to the form but I don't know how to link that checkbox to the Item master data. What would be the best solution considering my source code:
If pVal.EventType = et_FORM_LOAD And pVal.Before_Action = False And pVal.FormType = 150 Then
Set oForm = SBO_Application.Forms(FormUID)
Set oItem = oForm.Items.Add("EVOSS_Cut", it_STATIC)
oItem.Top = 68
oItem.Width = 80
oItem.Left = 448
Dim oTextField As SAPbouiCOM.StaticText
Set oTextField = oItem.Specific
oTextField.Caption = "Cut Item"
Set oItem = oForm.Items.Add("EVOSS_Cut2", it_CHECK_BOX)
oItem.Top = 68
oItem.Left = 430
oItem.Width = 20
Dim oCheckbox As SAPbouiCOM.CheckBox
Set oCheckbox = oItem.Specific
End If
Thanks a lotVicent,
add a userdatasource to the userdatasources collection of the form. Then bind your checkbox to the userdatasource.
Generally, you might consider not creating controls via code (unless necessary for dynamic control creation). Use srf files in order to update an existing form. This way is much faster. It also is a lot easier to adapt to changes - no need to touch the source code.
See the SAP samples or the TechDemo AddOn (/people/lutz.morrien3/blog/2004/09/21/sap-business-one-techdemo-addon-beta-out-now-and-it-is-free) for sample code.
HTH Lutz Morrien -
How to Count Number of completed line items in past 6 months / 12 months ?
How to Count Number of completed line items in past 6 months / 12 months ?
Hi,
I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
Purchase Order document = ZEBELN
Line Item = ZEBELP.
I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
I have "Delivery Completed" field, ELIKZ.
So, based on this would I be able to calculate it in Query Designer?
If so, Please let me know howHello Deva
If youe want to calculate the completed line item for last 6 or 12 month then i think u will be displaying the query data for these montrhs...create a customer exit to give you date range and restric it in filter area....
Now Choose any of the below option
1. I would suggest to implement an additional key figure "counter" in cube and fill values with one for which delivery is completed.
Now use calculated key figure in Query Designer based on logic
IF counter = 1 THEN counter ELSE 0
OR
2. create a formula variable based on ELIKZ and use replacement path variable, it will display you no. of docs for which delivery is completed....
Award points if it solves your problem
Revert back in case of further assistance...
Thanks
Tripple k -
How to create dynamic context based on a structure defined in the program?
Hi Experts,
I need to create a dynamic context based on a structure wa_struc which i have define programatically.
When I pass wa_struc to structure_name parameter of create_nodeinfo_from_struc, i get a runtime error:
"Parameter STRUCTURE_NAME contains an invalid value wa_struc."
How to create dynamic context based on a structure defined in the program?
I have written the code like this:
TYPES: BEGIN OF t_type,
v_carrid TYPE sflight-carrid,
v_connid TYPE sflight-connid,
END OF t_type.
Data: i_struc type table of t_type,
wa_struc type t_type.
data: dyn_node type ref to if_wd_context_node.
data: rootnode_info type ref to if_wd_context_node_info.
rootnode_info = wd_context->get_node_info( ).
clear i_struc. refresh i_struc.
select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
parent_info = rootnode_info
node_name = 'dynflight'
structure_name = 'wa_struc'
is_multiple = abap_true ).
dyn_node = wd_context->get_child_node( name = 'dynflight' ).
dyn_node->bind_table( i_struc ).
Thanks
Gopal
Message was edited by: gopalkrishna baligaHi Michelle,
First of all Special thanks for your informative answers to my other forum questions. I really appreciate your help.
Coming back to this question I am still waiting for an answer. Please help. Note that my structure is not in a dictionary.
I am trying to create a new node. That is
CONTEXT
- DYNFLIGHT
CARRID
CONNID
As you see above I am trying to create 'DYNFLIGHT' along with the 2 attributes which are inside this node. The structure of the node that is, no.of attributes may vary based on some condition. Thats why I am trying to create a node dynamically.
Also I cannot define the structure in the ABAP dictionary because it changes based on condition
I have updated my code like the following and I am getting error:
TYPES: BEGIN OF t_type,
CARRID TYPE sflight-carrid,
CONNID TYPE sflight-connid,
END OF t_type.
Data: i_struc type table of t_type,
dyn_node type ref to if_wd_context_node,
rootnode_info type ref to if_wd_context_node_info,
i_node_att type wdr_context_attr_info_map,
wa_node_att type line of wdr_context_attr_info_map.
wa_node_att-name = 'CARRID'.
wa_node_att-TYPE_NAME = 'SFLIGHT-CARRID'.
insert wa_node_att into table i_node_att.
wa_node_att-name = 'CONNID'.
wa_node_att-TYPE_NAME = 'SFLIGHT-CONNID'.
insert wa_node_att into table i_node_att.
clear i_struc. refresh i_struc.
select carrid connid into corresponding fields of table i_struc from sflight where carrid = 'AA'.
rootnode_info = wd_context->get_node_info( ).
rootnode_info->add_new_child_node( name = 'DYNFLIGHT'
attributes = i_node_att
is_multiple = abap_true ).
dyn_node = wd_context->get_child_node( 'DYNFLIGHT' ).
dyn_node->bind_table( i_struc ).
l_ref_interfacecontroller->set_data( dyn_node ).
But now I am getting the following error :
The following error text was processed in the system PET : Line types of an internal table and a work area not compatible.
The error occurred on the application server FMSAP995_PET_02 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMPONENT~VIEW_MODIFY of program CL_SALV_WD_A_COMPONENT========CP
-Gopal
Message was edited by: gopalkrishna baliga -
Create delivery document for line item 5 only manually
Hi Sap Experts,
We have scenario, we have created sales order with 10 line items while creating delivery we don’t want to show all the 10 line item to delivery creator (creating delivery manually).
We will send him mail saying that create delivery document for line item 5 and we will provide him material number and delivery date and shipping point with sales order number.
We don’t want to use partial delivery option that split the delivery and we don’t want to use VL10C tcode also.
What are options we have and how to customize this scenario?
Kindly suggest.
Regards,
KotliCan you be clear in your requirement?
One requirement is user should not select line items other than the one instructed to them
The other requirement is delivery split should happen based on item category
If your requirement is first one, you need to go with user exit USEREXIT_MOVE_FIELD_TO_LIPS in include MV50AFZ1 but I am not sure, on what logic, coding to be included in this exit. If your requirement is second one, then just try in your system and share the outcome how system is functioning. You will come to know how standard SAP works.
G. Lakshmipathi -
How to create Dynamic Menu in 11g?
Hello All,
I am using JDeveloper/Adf 11g.
Can you please tell me how to create Dynamic menu(means Menu will be created from table if we make any changes in table it will reflect to the Menu).
Thanks.
Neelmani Jaiswal
(Madhav, Hayaghat)
Edited by: Neelmani Jaiswal on Jan 6, 2009 11:01 AM
Edited by: Neelmani Jaiswal on Jan 6, 2009 11:01 AM
Edited by: Neelmani Jaiswal on Feb 3, 2009 8:46 AMNeelmani,
How: write some code.
The Web User Interface Developer's Guide for Oracle Application Development Framework will be helpful. Hint: you may want to read section 14.2 (especially 14.2.1, item 2, which talks about using iterators in a menu) OR section 17.5, which talks about creating menus to support page hierarchies.
John -
Please let me know how to Count Number of completed line items in past 6 mo
How to Count Number of completed line items in past 6 months / 12 months ?
Hi,
I am trying to count "Number of Completed Line Items in Purchase Order Document" for my Key Figure ZPO_CNT.
Purchase Order document = ZEBELN
Line Item = ZEBELP.
I need to find and count if the Line Item has been received in the past 6 months from today and similarly in the past 12 months.
I have "Delivery Completed" field, ELIKZ.
So, based on this would I be able to calculate it in Query Designer?
If so, Please let me know how
KrishnaHi Experts,
I dont have a defined Restricted key figure yet.
I have populated 0COMPL_DEL(Delivery Completed Indicator) and 0EBELN (Purchasing Document Number) and 0EBELP (Line Item Number in Purchasing Document) .
This is what I think how I need to calculate:
Number of completed line items in past 6 months:
If Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 6 months
and
Number of completed line items in past 12 months:
If Delilvery Completed Indicator (0COMPL_DEL) = x, calculate No. of Line Items (ZPO_CNT) from 0CALDAY to 12 months
Please let me know if the logic is correct. If so, how I can create this in report -
How to create dynamic nested internal table
Hi Experts,
Pleae tell me or give sample code, how to create dynamic nested internal table ?
I have seen threads saying creation of dynamic internal tables using some table structure only. But now the requirement is to create dynamic nested internal table.
For example the internal table contains two fields viz., one is field1 of dynamic internal table and other is normal field2 and values as shown below:
Nested internal table:
field1 | field2 ...
<table content1> | value2..
<table content1> | value2..
Here the [table content] should also a dynamic internal table.
Let me know if you need any other info.
regards
Saravanan Rsee the complete code..i am currently working in ECC6.0 EHP4. just check which version you are using..
REPORT yst_test_000.
DATA:
lt_comptab TYPE cl_abap_structdescr=>component_table,
ls_comp LIKE LINE OF lt_comptab,
lref_newstr TYPE REF TO cl_abap_structdescr,
lref_tab_type TYPE REF TO cl_abap_tabledescr,
lt_fcat TYPE lvc_t_fcat,
ls_fcat TYPE lvc_s_fcat,
ls_dd03p TYPE dd03p,
lt_data type ref to data.
field-symbols: <fs_table> type standard table.
CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
EXPORTING
i_structure_name = 'SCARR'
CHANGING
ct_fieldcat = lt_fcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT lt_fcat INTO ls_fcat.
IF ls_fcat-ref_table IS NOT INITIAL.
CLEAR ls_dd03p.
CALL FUNCTION 'BUS_DDFIELD_GET'
EXPORTING
i_tabnm = ls_fcat-ref_table
i_fldnm = ls_fcat-fieldname
IMPORTING
e_dd03p = ls_dd03p
EXCEPTIONS
field_not_found = 1
OTHERS = 2.
IF sy-subrc EQ 0.
ls_comp-name = ls_fcat-fieldname.
ls_comp-type ?= cl_abap_datadescr=>describe_by_name( ls_dd03p-rollname ).
APPEND ls_comp TO lt_comptab.
CLEAR ls_comp.
ENDIF.
ELSE.
ls_comp-name = ls_fcat-fieldname.
ls_comp-type ?= cl_abap_datadescr=>describe_by_name( ls_fcat-rollname ).
APPEND ls_comp TO lt_comptab.
CLEAR ls_comp.
ENDIF.
ENDLOOP.
*Now for the Field which you want deep table then you can do like this
ls_fcat-fieldname = 'NESTED_TABLE'.
ls_fcat-inttype = 'C'.
ls_fcat-intlen = '000006'.
ls_fcat-rollname = 'SFLIGHT_TAB1'. "For SFLIGHT
APPEND ls_fcat TO lt_fcat.
ls_comp-name = ls_fcat-fieldname.
ls_comp-type ?= cl_abap_datadescr=>describe_by_name( ls_fcat-rollname ).
APPEND ls_comp TO lt_comptab.
CLEAR ls_comp.
lref_newstr = cl_abap_structdescr=>create( lt_comptab ).
lref_tab_type = cl_abap_tabledescr=>create( lref_newstr ).
create data lt_data type handle lref_tab_type.
assign lt_data->* to <fs_table>.
break-point.
Edited by: Vijay Babu Dudla on Apr 28, 2009 8:05 AM -
How to Controll Dynamic Checkbox Groups
i want to create checkbox groups dynamically. Each group will have at least one child checkbox. if i select parent check box all child checkboxes should be checked.if i uncheck parent checkbox all child checkboxes should be unchecked.
that check box group name also coming dynamically. i am trying to pass group name dynamically but it's not recognizing that name in javascript.
pls help me on this how to controll dynamic checkbox groups.recognizing that name in javascript.Are you dynamically creating checkboxes with JSP?
-
Is it possible to create dynamic checkBox inside the loop? I am planning to generate a set of checkBox and then adding them into panels. Is it possible to do it? I have to generate checkBox dynamically.
Thx.I tried as below. Is it right?
private void createCheckBoxes(List javaFiles) {
int count = javaFiles.size();
System.out.println("The number of .tna files are"+count);
for(int i=0; i<=count-1; i++){
System.out.println("Creating checkBoxes");
//Create checkbox
JCheckBox box = new JCheckBox("region"+i);
box.setName("region"+i);
dynamicPanel.add(box);
dynamicPanel.validate();
}I have few doubts.
Initially I tried as below:
JCheckBox box = new JCheckBox();
box.setName("region"+i);It created the check boxes dynamically but the name was not printed. Why is that so?
Now my first set of code works. But how do I refer to these dynamic components?
Thx. -
How to create a invoice with invoice items in SRM?
Hi experts,
I am testing my BW custom code for SRM. My question is I have to create a invoice with line item 1 quantiy 20 in SRM - development. After this I have mark line item 1 with a deletion indicator X in SRM and create two more line items and load it again in BW. This time in BW it should delete line item 1 with deletion indicator X and load the two new line items that I created.
Please tell me the T-code and step by step instructions to create it.
Thanks in advance.
Sharat.i answered by myself.
Maybe you are looking for
-
JRE 1.5 VS. JRE 1.6 - Could not convert socket to TLS
I have an applet that is trying to send an email through an SMTP server. It works just fine 1.6 but on 1.5 it blows up and I'm kind of at the end of my rope. Any help here would be great. I've had to set up the DummySSLSocketFactory as described in t
-
How do I set up a RAID array with an external hard drive?
Im trying to backup my hard drive onto a 250 GB external hard drive (connected by Firewire) via a RAID 1 configuration. What is the best way to do this? MacBook Mac OS X (10.4.6) Intel-based, Windows XP Pro is installed via Boot Camp
-
Add a Web Part on the right side to an existing SP site (instead of top)
Hi, I have read the existing threads and still have questions. I need to add a Web Part (I think) to an existing SP site - with the Web Part on the RIGHT side of the site - so: Libraries, Lists, Discussions, etc. on the left (existing) -- List of fil
-
MM Transaction did not flow to PA - specific storage location with mvt 945
Dear all, When we use movement type 945 to transfer some materials from one plant to another plant, the difference of the inventory value (due to the different standard prices in different plant) are charged to a COGS account. This COGS account has
-
How to set the defined last day of a month
Hi, I'm stuck with something. I want to set the desired last day of month to the calendar. How can I do so? For example: The last friday of january 2006, the last saturday of june 2005, last monday of december 2012