Fixed Vendor check box with BAPI "BAPI_SOURCEDETERMIN_GETSOS"
Hello gurus,
I am new to BAPI & I need to update the source list(ME01) with agreement no., item, unit & fixed vendor check-box.
My question to all that the fixed vendor check box will be checked or not if i use the BAPI BAPI_SOURCEDETERMIN_GETSOS?
Thanks & regards,
Feluda
Hello,
The coding you've made regarding the check/uncheck seems fine...
However, check again logic-atp_wrkmod...
As far as i've seen, the allowed values are space and 'A' .
The value 'X' is not in the domain range.
Hope it helps!!
Similar Messages
-
How to create a check box with an X
Hi,
How do you create a check box with an X as apposed to a tick?
ThanksGo to the check box's properties and in the Options tab choose "Cross" as the check box style.
-
Hi :
In application express as we have select withredirect can you include check box with redirect
please suggest
Thanks
sudhirSudhir,
Check whether the following javascript helps you.
function go() {
var abc = '';
var radioLength = document.wwv_flow.p_v05.length;
var retVal = '';
if(radioLength == undefined)
if(document.wwv_flow.p_v05.checked)
retVal = document.wwv_flow.p_v05.value;
else
return "";
for(var i = 0; i < radioLength; i++) {
if(document.wwv_flow.p_v05.checked) {
retVal = retVal + '4' +document.wwv_flow.p_v05[i].value;
retVal = retVal.substring(1, retVal.length);
if(retVal=='Y')
var answer = confirm("Do you want to move to the page a ? If yes,press OK to move to a , CANCEL to stay here");
if (answer == true)
alert('Please wait while we transfer you to the Consulting Win Story template');
location.href="url a ";
else
return"";
if(retVal=='N')
alert(' Thank you');
location.href="same page url";}
here i have used the option button to move to another page and stay in the same page.
If you want to submit the page for any value,
you can write doSubmit( submitbuttonname);
call this function on the option button, in html form element attributes.
name ="p_v05" onClick="go()"
Message was edited by:
archana -
Check Box With Tick Mark on Sap Script
Hello All,
We need to add a check box with tick mark on Sap Script.Please can anyone let me know how can we add it.
Regards
Amrutahi amruta,
The soluti as an image into on to your problem can be to use the symbol icon as told , but this may show in preview not in print.
I too faced the same problem.
So what i had done is created a new window with the diemnsions of the chekc box with border thcikness 8 tw and inside that window place a checkmark symbol.
if this checkmark symbol also does not show up in print preview/ doesshow in print preview and not in print then you can scan a chekcmark image and upload it into business document server as a BMP/ TIFF image and use this image in your checkbox window.
Hope this solves your problem.
Warm Regards
Venugopal.T -
Hi
Is it possible to have check boxes with submit in APEX like selected list with submit.
The requirement is as follows
we have different systems and under each system there are number of applications.
The systems and applications should appear as checkboxes to select.
If I select a particular checkbox for a system, list of applications under that system should appear in form of checkboxs.
secondly, I should also have an option for selecting multiple systems and multiple applications.
Can anyone advice me how this can be achieved.
Thanks.in HTML Form Element Attributes of your CHECKBOX put:
onClick="javascript:doSubmit(CHECK_BOX_CLICKED');"
Hope this helps... -
Oracle apex check box with update column
hi to all:
i have report emp.it contain data like eno,ename,sal,record .
example:eno ename sal record
100 a 100
200 b 3000 going on...
using this column i am making report by using apex and report contain one submit button also.
1)in this report i am creating dynamic check box depend on eno..see my coding
declare
str varchar2(3000);
begin
str:='select htmldb_item.CHECKBOX(10,eno,DECODE(record,1,''CHECKED'')) "SELECT" ,eno,ename,sal ,record from emp where 1=1';
return str;
end;
2)in process crated after submit
iam created pl/code like ..this code for
declare
i number;
str varchar2(2000);
emp_id number;
begin
FOR i in 1..HTMLDB_APPLICATION.G_F10.count
LOOP
IF HTMLDB_APPLICATION.G_F10(i) is not null then
SELECT htmldb_application.G_F10(i) INTO emp_id from dual;
--insert into my_log values(emp_id);commit;
update emp set record=1 where eno=emp_id ;
commit;
else if HTMLDB_APPLICATION.G_F10(i) is null then
update emp set record=0 where eno=emp_id ;
commit;
else
null;
end if;
end loop;
end;
my requirenent:
a)if check box checked then -update -record column -1
b)if check box uncked then -update - record column -0
in process coding--
eno alway is not null only..
so i want to do check box with update the record column..like this
a)if check box checked then -update -record column -1
b)if check box uncked then -update - record column -0
pls give solution.
output i want like this example:
chebox eno ename sal record
checked(X) 100 a 300 1
checked(x) 200 b 300 1
next time i am trying to make uncheck first row like
chebox eno ename sal record
unchecked 100 a 300 0
checked(x) 200 b 300 1I'm not really sure what your problem is but if you are trying to update/save data when a checkbox is checked I would use javascript to call an application process to do the update/save.
/Daniel -
Binding a Check Box with a User Defined Field
Hi everyone,
i v created a user defined field (U_CheckPro)in the system table "OITM" with two values: Y for Yes and N for No. In relation to that i v also created a check box on the form "150" and would like to know how can i bind my checkbox with my user defined field properly.
The user would be than able to enable or disable the check box for each item (article). The user setting schould be than be active and valid in sbo-business logic, each time an item is selected. (for example in case of sales order ID 133, "OINV").
Any helfpul hints? Samples would be welcome as well.
Thanks and regards
Alban> First of all you should remove the valid values
> because checkboxes does not work with valid values...
> Just give a default value.
Hi Rasmus,
thank you very much for your helpful hint. I guess my problem is solved by that - nevertheless here is my complete code sequence once again in case of possible errors.
I would appreciate any additional suggestion for improvement of the same.
Thanks and regards
Alban
>>>
Private Sub AddItem()
' Test UserSource
oForm.DataSources.UserDataSources.Add("U_CheckPro", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1)
oItem = oForm.Items.Item("122")
' Adding a Static Text item
oNewItem = oForm.Items.Add("StaticTxt2", SAPbouiCOM.BoFormItemTypes.it_STATIC)
oNewItem.Left = oItem.Left + 20
oNewItem.Width = 100
oNewItem.Top = oItem.Top + 12
oNewItem.Height = 25
oNewItem.FromPane = oItem.FromPane
oNewItem.ToPane = oItem.ToPane
oNewItem.LinkTo = "CheckBox1"
oStaticText = oNewItem.Specific
oStaticText.Caption = "Test_Caption"
' Adding a Check Box item
oNewItem = oForm.Items.Add("CheckBox1", SAPbouiCOM.BoFormItemTypes.it_CHECK_BOX)
oNewItem.Left = oItem.Left
oNewItem.Width = 20
oNewItem.Top = oItem.Top + 15
oNewItem.Height = 19
oNewItem.FromPane = oItem.FromPane
oNewItem.ToPane = oItem.ToPane
oNewItem.DisplayDesc = False
oCheckBox = oNewItem.Specific
'binding check box to source
oCheckBox.DataBind.SetBound(True, "OITM", "U_CheckPro")
End Sub
>>> -
Check box with Boolean data type is not behaving properly
Hi,
I create a sample application with one entity driven view object with two attributes. One is of String data type [Value will be Y/N] and another (transient) attribute with Boolean data type. I planned to bind this boolean data type attribute to UI. I overridded the view row impl class and included setting of boolean attribute inside the setter of String attribute. Also in the getter of boolean attribute, added code to check the string attribute and return true/false based on that. Everything is working fine in application module tester. But when i test the same in view controller project in a page, it is not working. Always Check box component is not checked eventhough when i explicitly check it.
[NOTE: I have given the control hint of Boolean attribute as check_box. Also i don't want selected/unselected entries in the page def file. That's why followed this approach]
Have i missed out anything? Why this behaviour.
Thanks in advance.
Raguramanwhat is the value that is going in when u check it.. did u debug it.. is the viewRowimps setter and getter getting called.. and is it having the right value set and got.. and ur sure that ur using selectBooleanCheckBox..
ur binding the checkbox to the transient value right?? -
How to link a check box with a text field
Hello, I'm looking for some help with my PDF form. If a check box is checked then I would like to force the user to input a value a related text field. First, is this possible and if so can anyone give me some guidance on how to achinve this. I'm currently using LiveCycle 8.0..
Thanks for your help...Go to the check box's properties and in the Options tab choose "Cross" as the check box style.
-
How to change the check box with the push button in itrator table rows
Hi all,
I want to change the check box of the itrator table rows with push button/ some thing better as to give
the table view more good look and user friendly.
Does any one has tried any other option in table view in place of check box
Thanks
BhagatThere are various objects which you can create via iterators. Please see the application SBSPEXT_TABLE for more details.
DATA: lo_text TYPE REF TO cl_htmlb_textview,
lo_ddlb TYPE REF TO cl_htmlb_dropdownlistbox,
lo_input TYPE REF TO cl_htmlb_inputfield,
lo_button TYPE REF TO cl_htmlb_button,
lo_chk_bx TYPE REF TO cl_htmlb_checkbox.
row_ref = p_row_data_ref.
CASE p_column_key.
WHEN 'EFF_DATE'. " Input field
CREATE OBJECT lo_input.
lo_input->id = p_cell_id.
lo_input->type = 'DATE'.
lo_input->showhelp = 'TRUE'.
lo_input->width = '60'.
lo_input->invalid = 'true'.
p_class = `ao`.
lo_input->value = get_column_value( p_column_key ).
p_replacement_bee = lo_input.
WHEN 'NEW_LOC'. " Drop down list box
CREATE OBJECT lo_ddlb.
GET REFERENCE OF gt_persa INTO lo_ddlb->table.
lo_ddlb->id = p_cell_id.
lo_ddlb->nameofkeycolumn = 'NAME'.
lo_ddlb->nameofvaluecolumn = 'VALUE'.
lo_ddlb->selection = get_column_value( p_column_key ).
lo_ddlb->selection = 'DUMMY'.
p_replacement_bee = lo_ddlb.
WHEN 'MON' . " Check box
CREATE OBJECT lo_chk_bx.
lo_chk_bx->id = p_cell_id.
lo_chk_bx->checked = get_column_value( p_column_key ).
p_replacement_bee = lo_chk_bx.
WHEN 'NEW_MGR_SRCH'. " Button
CREATE OBJECT lo_button.
lo_button->id = p_cell_id.
lo_button->text = 'Search Mgr'.
lo_button->onclientclick = 'script'.
p_replacement_bee = lo_button.
WHEN OTHERS. " Text
CREATE OBJECT lo_text.
lo_text->id = p_cell_id.
lo_text->wrapping = 'FALSE'.
lo_text->text = get_column_value( p_column_key ).
lo_text->design = 'STANDARD'.
lo_text->textcolor = 'POSITIVE'.
p_replacement_bee = lo_text.
ENDCASE.
Thanks
A -
Check box with Radio button functionality
Hi All,
I have a requirement like I need to have two check boxes on selection screen when ever I check one the other should be cleared with out pressing enter or any thing on selection screen just like radio button, all helpful answers are rewarded
Thanks
GiridharHi Karnam Giridhar,
Try thee following code.
PARAMETERS: test1 RADIOBUTTON GROUP sc1 DEFAULT 'X' user-command u1,
test2 RADIOBUTTON GROUP sc1.
PARAMETERS : p_file TYPE rlgrap-filename.
AT SELECTION-SCREEN OUTPUT.
if test2 is initial.
loop at screen.
if screen-name EQ 'P_FILE'.
P_FILE = ''.
screen-input = '0'.
modify screen.
endif.
endloop.
endif.
AT selection-screen.
if not test2 is initial.
loop at screen.
if screen-name EQ 'P_FILE'.
if screen-input eq '0'.
screen-input = '1'.
modify screen.
endif.
endif.
endloop.
endif.
Regards
Raj -
Hi All,
I have placed checkbox with in table view using iterator.But the check box is getting right or left aligned acooring to the type of the filed .I want it ot be placed at the center of the cell always.How can i do it?
Thanks
SujithThis is the code which i am using.I am using checkbox for the column flag1 using iterator this check box getting aligned left as it char type.
<htmlb:tableView id = "tv1"
visibleRowCount = "10"
selectionMode = "lineEdit"
table = "<%= it_tableview %>"
iterator = "<%= iterator %>">
<htmlb:tableViewColumns>
<htmlb:tableViewColumn columnName = "name"
wrapping = "false"
width = "110"
title = "Name"
edit = "true"
type = "text" >
</htmlb:tableViewColumn>
<htmlb:tableViewColumn columnName = "flag1"
wrapping = "false"
width = "70"
title = "check1"
edit = "true"
type = "text" >
</htmlb:tableViewColumn>
<htmlb:tableViewColumn columnName = "flag2"
wrapping = "false"
width = "110"
title = "check2"
edit = "true"
type = "text" >
</htmlb:tableViewColumn>
<htmlb:tableViewColumn columnName = "value"
wrapping = "false"
width = "110"
title = "valuecell"
edit = "true"
type = "text" >
</htmlb:tableViewColumn>
</htmlb:tableViewColumns> -
Check box with value in bsp page
hi experts.
i m new to bsp.
i want to fetch one field from a ztable with check box may be possible field have more than 4 values.
checkbox1 .... value1
checkbox2 ..... value2
checkbox3 ..... value3
checkbox4 ..... valule4
but there is not any field for checkbox in ztable .
now when we select check box depending on the selection of checkbox related values of field come into the 2nd page.
example if i select check box 3 and 4 than values related to value 3 and value 4 come into the 2nd page .
if any budy have gud example of this case plz let me know.
points are guarented...PAGE ATTRIBUTE.
itab_result TYPE ST_TV
wa_result TYPE TY_TV
LAYOUT.
<% data: v_checkbox_id type string,
sy_tabix type string.
Loop at itab_result into wa_result.
sy_tabix = SY-TABIX.
concatenate v_checkbox_id 'CHK' sy_tabix into v_checkbox_id.%>
<td>
<htmlb:checkbox id = "<%= v_checkbox_id %>"
text = "<%= wa_result-stext %>"
checked = "<%= wa_result-idx_data %>"
/>
</td>
<% ENDLOOP. -
hi
i am displaying list alv with check boxes, now i want to select few check boxes and doing some operation, after this operation i need to disable thoese check box.
can u pls guide me.
thanks.Hi,
using styles it is possible.
first you need to declare the one extra field in the internal table..
1. HANDLE_STYLE TYPE LVC_T_STYL.
DECLARE work area,and table
2. DATA: LS_EDIT TYPE LVC_S_STYL,
LT_EDIT TYPE LVC_T_STYL.
changing the style...
3.
LOOP AT IT_FINAL INTO LS_OUTTAB WHERE FLAG = 'X'.
V_INDEX = SY-TABIX.
LS_EDIT-FIELDNAME = 'MATNR'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 8.
INSERT LS_EDIT INTO TABLE LT_EDIT.
LS_EDIT-FIELDNAME = 'VBELN'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENAABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 8.
INSERT LS_EDIT INTO TABLE LT_EDIT.
LS_EDIT-FIELDNAME = 'POSNR'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_ENABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 8.
INSERT LS_EDIT INTO TABLE LT_EDIT.
INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-HANDLE_STYLE.
MODIFY IT_FINAL INDEX V_INDEX FROM LS_OUTTAB TRANSPORTING
HANDLE_STYLE .
ENDLOOP.
assigning the style to Layout..
4. GS_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
REUSE_ALV_GRID_DISPLAY_LVC. you can do the same with CL_GUI_ALV_GRID also.
REPORT ZTESTALV.
TYPE-POOLS: SLIS.
*- Fieldcatalog
DATA: IT_FIELDCAT TYPE LVC_T_FCAT,
IT_FIELDCAT1 TYPE SLIS_T_FIELDCAT_ALV..
*- For Events
DATA:IT_EVENTS TYPE SLIS_T_EVENT.
DATA: X_FIELDCAT TYPE LVC_S_FCAT,
X_FIELDCAT1 TYPE SLIS_FIELDCAT_ALV.
DATA:X_LAYOUT TYPE LVC_S_LAYO.
"{ FOR DISABLE
DATA: LS_EDIT TYPE LVC_S_STYL,
LT_EDIT TYPE LVC_T_STYL.
"} FOR DISABLE
DATA: BEGIN OF IT_VBAP OCCURS 0,
VBELN LIKE VBAP-VBELN,
POSNR LIKE VBAP-POSNR,
HANDLE_STYLE TYPE LVC_T_STYL, "FOR DISABLE
BUTTON(10),
END OF IT_VBAP.
DATA: LS_OUTTAB LIKE LINE OF IT_VBAP.
SELECT VBELN
POSNR
UP TO 10 ROWS
INTO CORRESPONDING FIELDS OF TABLE IT_VBAP
FROM VBAP.
DATA:L_POS TYPE I VALUE 1.
CLEAR: L_POS.
L_POS = L_POS + 1.
X_FIELDCAT-SELTEXT = 'VBELN'.
X_FIELDCAT-FIELDNAME = 'VBELN'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = L_POS.
*X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-OUTPUTLEN = '10'.
x_fieldcat-ref_field = 'VBELN'.
x_fieldcat-ref_table = 'VBAK'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
X_FIELDCAT-SELTEXT = 'POSNR'.
X_FIELDCAT-FIELDNAME = 'POSNR'.
X_FIELDCAT-TABNAME = 'ITAB'.
X_FIELDCAT-COL_POS = L_POS.
*X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-OUTPUTLEN = '5'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
"{FOR DISABLE HERE 6ROW IS DISABLED
SY-TABIX = 6.
LS_EDIT-FIELDNAME = 'VBELN'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 10.
INSERT LS_EDIT INTO TABLE LT_EDIT.
LS_EDIT-FIELDNAME = 'POSNR'.
LS_EDIT-STYLE = CL_GUI_ALV_GRID=>MC_STYLE_DISABLED.
LS_EDIT-STYLE2 = SPACE.
LS_EDIT-STYLE3 = SPACE.
LS_EDIT-STYLE4 = SPACE.
LS_EDIT-MAXLEN = 6.
INSERT LS_EDIT INTO TABLE LT_EDIT.
INSERT LINES OF LT_EDIT INTO TABLE LS_OUTTAB-HANDLE_STYLE.
MODIFY IT_VBAP INDEX SY-TABIX FROM LS_OUTTAB TRANSPORTING
HANDLE_STYLE .
X_LAYOUT-STYLEFNAME = 'HANDLE_STYLE'.
"} UP TO HERE
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
EXPORTING
I_CALLBACK_PROGRAM = SY-REPID
IS_LAYOUT_LVC = X_LAYOUT
IT_FIELDCAT_LVC = IT_FIELDCAT
TABLES
T_OUTTAB = IT_VBAP[]
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
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 above code i am modifying the 6 record . you can place your condition.using loop and endloop. you can disable many records/check box also.
Follow the next steps:
1. Add the following fields in the internal table:
checkbox TYPE c,
celltab TYPE lvc_t_styl,
2. Define a table and a work-area:
DATA: wa_celltab TYPE lvc_s_styl,
ta_celltab TYPE lvc_t_styl.
3. Update the internal table BEFORE display :
LOOP AT ta_data INTO wa_data.
h_tabix = sy-tabix.
Update field CHECKBOX (enable/disable INPUT)
REFRESH ta_celltab.
wa_celltab-fieldname = 'CHECKBOX'.
IF NOT wa_data-xxxxx IS INITIAL.
wa_celltab-style = cl_gui_alv_grid=>mc_style_disabled.
ELSE.
wa_celltab-style = cl_gui_alv_grid=>mc_style_enabled.
ENDIF.
INSERT wa_celltab INTO TABLE ta_celltab.
INSERT LINES OF ta_celltab INTO TABLE wa_data-celltab.
Update internal table
MODIFY ta_data FROM wa_data INDEX h_tabix.
ENDLOOP.
4. Define CHECKBOX in fieldcatalog
CLEAR wa_catalog.
wa_catalog-fieldname = 'CHECKBOX'.
wa_catalog-col_pos = 9.
wa_catalog-coltext = 'Checkbox'.
wa_catalog-checkbox = 'X'.
wa_catalog-edit = 'X'.
APPEND wa_catalog TO ta_catalog.
5. Call ALV
CREATE OBJECT h_custom_container
EXPORTING container_name = h_container.
CREATE OBJECT h_grid
EXPORTING i_parent = h_custom_container.
CALL METHOD h_grid->set_table_for_first_display
EXPORTING
it_toolbar_excluding = wa_toolbar
is_layout = wa_layout
CHANGING
it_outtab = ta_kntkn
it_fieldcatalog = ta_catalog
it_sort = ta_sort.
CALL METHOD h_grid->set_ready_for_input
EXPORTING i_ready_for_input = 1.
Regards
vasu -
Collecting values from multiple check boxes with same name
Hi,
I have a jsp-page with one form with several check boxes sharing the same
name (but with different values).
Can I collect the values in an array/list or something?
/jsp-beginner and google ain't my friend in this casethis answer not good enough for you?
Maybe you are looking for
-
ITunes Home Sharing not loading over VPN after upgrade to 10.10.2
Hey, all. For years I have used a VPN to stream my iTunes library from my home computer to my work computer (who wants to bring a drive around with them everywhere?). It works flawless on 10.8.5... Ever since I upgraded to 10.10.2 on my Mac Mini, th
-
Exit Code 6 installing CS6 on MacBook Pro
Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example, ERROR: DF024, DW063 ... WARNING: DS013 ... -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 4 error
-
SAP NetWeaver 7.0 ABAP Trial Version Installation Step
Dear sirs I have download the SAP NetWeaver 7.0 ABAP Trial Version both 2 rar files 2.47 GB.Now i want install.on my pc XP SP2 is runing and 24 GB free Disk Space on D Drive. so plz gudie me how to install the SAP NetWeaver 7.0 ABAP Trial Version & l
-
Installing Creative Cloud on Windows 8
Did anyone else have difficulty loading Creative Cloud on a Windows 8 pc?
-
Mac OS X 10.5.5 Update - Any issues?
I usually wait a few days before updating to avoid any compatibility issues, as I know there were some with 10.5.3 or 10.5.2, I can't remember. Either way, any issues with LR2.0 for any of you who upgraded to 1.5.5? Thanks in advance.