Need to fetch function code value of push button into BUS
He expert,
I have created one custom screen in standard transaction IQ02.where I am populating some values into screen and one push button is there.I want to trigger the workflow only when user press this push button.I am using BUS DEVICE for that.
Is it possible to fetch function code value of push button into the BUS object by creating custom attributes.So i can put the function code value as a condition before triggering workflow.or is there any other way to to implement the above functionality.
Please suggest.
Hi,
I'd say you need to delegate the std DEVICE object to your own ZDEVICE, where you define a custom event. Then generate the DEVICE.CUSTOMEVENT event when the user clicks on your pushbutton (eg. with SAP_WAPI... function module).
In your workflow remove the standard triggering event and use your custom event instead.
Cheers,
Patrick
Similar Messages
-
Need to fetch the column value which is not null
Hi All,
I have table
please find the table with the values
emp
eno ename addr1 addr2 addr3 postcode phone Default
1 null null null null null null Abc
null name null null null null null Abc
null null null null null null 123 Abc
5 null null abcdef null null 123 Abc
i need select the column with value alone.
Is it possible with a query.
My output for 1 row should be
eno,default
1, abc
I dont want to fetch the null value columns. I need to query to fetch for whole table.
Regards,
Mohanarangan KTable values
eno ename addr1 addr2 addr3 postcode phone Default
1 null null null null null null Abc
null NAME null null null null null Abc
null null null null null null 123 XYZ
5 null null abcdef null null 123 XYZ
select from emp where default = 'XYZ'
It should fetch the
O/P:
phone default
123 XYZ
eno addr2 default
5 abcdef xyz
this way my output should appear. can you help me in this -
Where to write the code when the push button is clicked in the screen
I have designed a screen with a push button and a text box
If i click on the push button it should display a value 'hello' in the text box. How to doWhen you are using module pool programming,
handle the push button function code in the PAI module and make sure the text field is updated whenever that function code for push button gets executed.
And one more thing is that make sure you set the next screen to the same screen number because after executing the function code then again it has to go back to the PBO of that screen for displaying the text field.
For inital display, the text field is displayed blank and it is filled when that function code is executed.
Regards,
Balaji Reddy G
Note:Please reward if the answers are helpful -
Adding function code dynamically for radio buttons
Hi Experts,
I have two radio buttons in standard screen which when clicked my custom logic should be executed.
The issue here is the standard screen radio button does not have a Fcode assigned in the field properties because of this no event is triggered when the radio button is selected.
Thank You,
Anupama.Hi anu,
Try the following procedure,
- Combine all the radio buttons into a group. T
- Create a common function code for all the radio buttons. F
- Assign all the radio buttons to the same modification group. F
- Enclose all entire radio button in a frame. F
Also check the website it help u as u need,
[http://help.sap.com/saphelp_nw04/Helpdata/EN/3d/c3b23782a9cc68e10000009b38f8cf/content.htm]
Hope it helps u....
Regards,
Annevit -
Is it posibble to code values like *000.01* into Barcode in Documaker 11.4
I am looking for the feasiblity to encode values like '*000.01*' into Barcode in Documaker 11.4
When i tried the same i got a warning message (6657) stating Invalid Barcode.
But my Barcode reader is expecting a value as mentioned above.
Edited by: Barath88 on Mar 21, 2013 12:12 AMBanner Dal:
BeginSub PreBatch
#tran = 0
rname = Trim(RecipName())
EndSub
BeginSub PreTrans
#tran += 1
#Pagecnt = TOTALSHEETS(rname)
#pageno = 0
BatchRecip=RecipName()
#Formcnt=0
Group = GroupName(,"*")
Form = FormName(, , Group)
while(Form != "")
Nextform = FormName(#Formcnt,Form,Group)
if (Nextform = "")
Group = GroupName(1,Group)
if (Group = "") then
break
end
Form = FormName(,"*",Group)
if (Form = "") then
break
end
#Formcnt = 0
continue
end
#Formcnt += 1
#FormPgNum=1
#AddImgnameCntr=1
Imgname = PAGEIMAGE(#FormPgNum,BatchRecip,Nextform)
while(Imgname != "")
#pageno += 1
tran = Format(#tran,'n','9999')
Pagecnt = Format(#Pagecnt,'n','99')
pageno = Format(#pageno,'n','99')
If (#Pagecnt = #pageno)
#cnt = 1
else
#cnt = 0
end
Barcod2 = "0000" & "." & tran & "." & Pagecnt & "." & pageno & "." & "00" & "." & #cnt
#rcSetFld=SetFld(Barcod2,"NYFTZ","NYFTZAA\" & #AddImgnameCntr,Nextform)
#rcSetFl1=SetFld(Barcod3,"NYFTY","NYFTZAA\" & #AddImgnameCntr,Nextform)
#AddImgnameCntr += 1
#FormPgNum += 1
Imgname = PAGEIMAGE(#FormPgNum,BatchRecip,Nextform)
wend
wend
EndSub
Image Addition DAL:
#pageno = 1
#Pagecnt = TOTALSHEETS()
if (#Pagecnt > 0)
while(1)
iName=PageImage(#pageno)
If (iName = "")
break
end
qName = "NYFTZAA"
AddImage(qName,iName,,"*",1)
qName = qName & "\" & #pageno
#pos.top=9700
#pos.left=18400
SetImagePos("#pos",qName,,"*");
SetFld(0,"NYFTZ",qName,,"*");
SetFld(0,"NYFTY",qName,,"*");
#pageno += 1
wend;
end -
Tax code value is not flowing into the netprice of the PO
HI,
Tax percentage are calculating correctly but the final value is refelected to my pricng procedure and adding on to the net price of the PO,what should I do to bring the tax value to NAVS condition of the pricing procedure.
Regards
KanthaHii,
Check the tax procedure and the condition type assigned with the tax code which you are using. Please provide more details like u r using CIN & TAXINN???
Regards, -
How to maintain the function code added to a custom screen in IW31
Hello gurus,
Does anyone know how can I maintain the function code of the push button I have in my enhancement screen in IW31 (Service Order). 'Coz it says "Requested function 'my fcode' is not available". I tried it in VFBS but don't know the screen sequence or what's the right data to put. Please help me with this. Thanks.
Regards,
AyemSheeraHi, you need add Your Function Code into the Tables T185x (x like T, F...). Call Transaction SM30 (SM31), put the Table name T185 into Table name and select the Button 'Maintain' or Customizing. The Transaction will navigate you to right position in Customizing. Next, you need to find in the Table's T185x Line with the Program Name SAPLCOIH. Then add your code into the Table's. At next, You have to maintain Your function Code in the PAI module of your Custom screen in the TA IW31.
Sincerely Yours,
Lubomir. -
Hi All,
Can some one please help me with the below code?
I need to fetch the code value where as I have the decode value and the lookup name
I dont see any API which can help me in this.
Thanks in advanceyou have to get the lookup values in tcResultSet API methods provided tcLookupOperationIntf .
Iterate over tcResultSet, Now you can get metadata from result set like getStringValue of code key of decode key
http://download.oracle.com/docs/cd/E10391_01/doc.910/e10027/appendixa.htm# -
Hi expert,
In push button i am displaying some ebeln . My requirment is to retrive the value displayed on pushbutton on pressing. I am not able to retrive the value and index ( I have created via step loop) position of the push button. Please tell me how can I do this? I have created one function code for this push button.Duplicate/Cross post of Content of pushbutton in .
Do not post a question more than once in the forum.
Read the [Forum Rules|http://wiki.sdn.sap.com/wiki/x/FgQ] before posting more.
Regards
Karthik D
Moderator message - the other cross post is locked
Edited by: Rob Burbank on Nov 20, 2009 10:42 AM -
Function Codes Automatically Recognised by ABAP
Hi,
I am studying Interactive Report these days, and found that there are some function codes automatically recognised by ABAP, for instance, function code BACK which associated with function key F3 has the functionality of BACK, and function code RW which associated with F12 has the functionality of CANCEL.
The material that I looked through gives 7 function codes, are there just 7 function codes that could automatically recognised by ABAP? If the answer is no, is there an official list that show all the function codes?
Thanks a lot.
Best Regards!
Stephanie HEHi,
Welcome to SDN,
To my knowledge there are no list of function codes execpt standard menu bar function codes...
So if you like to know the function code in any SAP Screen then you just enter '/h' in the command text box and the press enter so that debugging is switched on.
Now press any icon or any key so that it will take you into debugging.... in the debugging screen enter SY-UCOMM in the text box and press enter so that you can capture the function code of that particular button.
This process do help during interface program ( BDC PROGRAM and also INTERACTIVE LIST PROGRAMMING to check with User defined push buttons )
Hope this would be helpful.
Revert back if any suggestions or clarifications needed.
Regards
Narin Nandivada. -
How to fetch the maximum values of 2 columns
Hi All,
I need to fetch the maximum value of 2 columns. For example I need to fetch the latest record for which i have to fetch the latest date and time. Date and time fields are 2 different columns. As of now am doing it the crude fetching the latest date records and then fetching the latest time record.
Is there any other smarter way to do it. The one am doing rite now is turning out to be very performance intensive at the moment for me. Also I could not apply max condition for two fields together.
Please guide.
Thanks,
NagrajHi Jaspreet,
Thanks for your response. But the problem am facing with this approach is I have to do this for n number of records in another internal table which is making it to cumbersome and affecting performance.
Please suggest is there any better way to do it.
Thanks,
Nagraj -
Function codes ininteractive ALV
Hello all,
In interactive alv we can use function code as &IC1 to indicate double click .
Here my doubt is where we can find all this function codes. Is there any table or ?
Thanks in advance.
Apps.Hi,
try this .
In the alv display screen,before clicking any button( if u want to know function code ),
press /h on the command box and press enter.This gives u message like debugging on.
Then click on button required,it will goto debugging ,then type sy-ucomm and press F5,u will get function code associated with the button.
Hope this helps u. -
I want a push button for line items in my sales order entry screen.
Hi,
I want a push button for line items in my sales order entry screen.
How can I do so?
Thanks.Hi Kumar ,
To have a push buttons you need to first assign a pf-status .
here a sample code for a push button and its handling :
set pf-status 'SELECT' .
at user-command .
describe table t_lpr lines w_lines .
case sy-ucomm .
when 'SELECTALL' .
set pf-status 'SELECT' excluding 'SELECTALL' immediately.
do w_lines times .
read line w_line field value w_check . " INTO W_CHECK .
if w_check = space .
w_check = 'X' .
modify line w_line field value w_check. "INTO W_CHECK .
add 1 to w_line .
endif . " IF W_CHECK = ' '
enddo .
Thus when you say pf-status say 'select' , Double click on that and you find a screen eher you can select icons and assign a function code to it!
Hope it helps!
Much Regards,
Amuktha . -
Edit a selected row in an alv report after pressing a push button ?
hi all ,
I want to edit a selected row in an alv report but that too after i press a push button . After pressing the push button , a pop up shud *** showing all the entries of the selected row which shud be editable and after editing it shud be saved into the database table.
How can i do this please help asap ???May this prog. of mine can solve your requirement.
REPORT z_demo_alv_jg.
TYPE-POOLS *
TYPE-POOLS: slis.
INTERNAL TABLES/WORK AREAS/VARIABLES *
DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
i_index TYPE STANDARD TABLE OF i WITH HEADER LINE,
w_field TYPE slis_fieldcat_alv,
p_table LIKE dd02l-tabname,
dy_table TYPE REF TO data,
dy_tab TYPE REF TO data,
dy_line TYPE REF TO data.
FIELD-SYMBOLS *
FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
<dyn_wa> TYPE ANY,
<dyn_field> TYPE ANY,
<dyn_tab_temp> TYPE STANDARD TABLE.
SELECTION SCREEN *
PARAMETERS: tabname(30) TYPE c,
lines(5) TYPE n.
START-OF-SELECTION *
START-OF-SELECTION.
Storing table name
p_table = tabname.
Create internal table dynamically with the stucture of table name
entered in the selection screen
CREATE DATA dy_table TYPE STANDARD TABLE OF (p_table).
ASSIGN dy_table->* TO <dyn_table>.
IF sy-subrc <> 0.
MESSAGE i000(z_zzz_ca_messages) WITH ' No table found'.
LEAVE TO LIST-PROCESSING.
ENDIF.
Create workarea for the table
CREATE DATA dy_line LIKE LINE OF <dyn_table>.
ASSIGN dy_line->* TO <dyn_wa>.
Create another temp. table
CREATE DATA dy_tab TYPE STANDARD TABLE OF (p_table).
ASSIGN dy_tab->* TO <dyn_tab_temp>.
SORT i_fieldcat BY col_pos.
Select data from table
SELECT * FROM (p_table)
INTO TABLE <dyn_table>
UP TO lines ROWS.
REFRESH <dyn_tab_temp>.
Display report
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_structure_name = p_table
i_callback_user_command = 'USER_COMMAND'
i_callback_pf_status_set = 'SET_PF_STATUS'
TABLES
t_outtab = <dyn_table>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
*& Form SET_PF_STATUS
Setting custom PF-Status
-->RT_EXTAB Excluding table
FORM set_pf_status USING rt_extab TYPE slis_t_extab.
SET PF-STATUS 'Z_STANDARD'.
ENDFORM. "SET_PF_STATUS
*& Form user_command
Handling custom function codes
-->R_UCOMM Function code value
-->RS_SELFIELD Info. of cursor position in ALV
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
Local data declaration
DATA: li_tab TYPE REF TO data,
l_line TYPE REF TO data.
Local field-symbols
FIELD-SYMBOLS:<l_tab> TYPE table,
<l_wa> TYPE ANY.
Create table
CREATE DATA li_tab TYPE STANDARD TABLE OF (p_table).
ASSIGN li_tab->* TO <l_tab>.
Create workarea
CREATE DATA l_line LIKE LINE OF <l_tab>.
ASSIGN l_line->* TO <l_wa>.
CASE r_ucomm.
When a record is selected
WHEN '&IC1'.
Read the selected record
READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX
rs_selfield-tabindex.
IF sy-subrc = 0.
Store the record in an internal table
APPEND <dyn_wa> TO <l_tab>.
Fetch the field catalog info
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = 'Z_DEMO_PDF_JG'
i_structure_name = p_table
CHANGING
ct_fieldcat = i_fieldcat
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
IF sy-subrc = 0.
Make all the fields input enabled except key fields
w_field-input = 'X'.
MODIFY i_fieldcat FROM w_field TRANSPORTING input
WHERE key IS INITIAL.
ENDIF.
Display the record for editing purpose
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_structure_name = p_table
it_fieldcat = i_fieldcat
i_screen_start_column = 10
i_screen_start_line = 15
i_screen_end_column = 200
i_screen_end_line = 20
TABLES
t_outtab = <l_tab>
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc = 0.
Read the modified data
READ TABLE <l_tab> INDEX 1 INTO <l_wa>.
If the record is changed then track its index no.
and populate it in an internal table for future
action
IF sy-subrc = 0 AND <dyn_wa> <> <l_wa>.
<dyn_wa> = <l_wa>.
i_index = rs_selfield-tabindex.
APPEND i_index.
ENDIF.
ENDIF.
ENDIF.
When save button is pressed
WHEN 'SAVE'.
Sort the index table
SORT i_index.
Delete all duplicate records
DELETE ADJACENT DUPLICATES FROM i_index.
LOOP AT i_index.
Find out the changes in the internal table
and populate these changes in another internal table
READ TABLE <dyn_table> ASSIGNING <dyn_wa> INDEX i_index.
IF sy-subrc = 0.
APPEND <dyn_wa> TO <dyn_tab_temp>.
ENDIF.
ENDLOOP.
Lock the table
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
mode_rstable = 'E'
tabname = p_table
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
IF sy-subrc = 0.
Modify the database table with these changes
MODIFY (p_table) FROM TABLE <dyn_tab_temp>.
REFRESH <dyn_tab_temp>.
Unlock the table
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
mode_rstable = 'E'
tabname = p_table.
ENDIF.
ENDCASE.
rs_selfield-refresh = 'X'.
ENDFORM. "user_command
Regards,
Joy. -
Hi,
Need help in resolving below given 2 issues:
1. I have a string Combo box(dropdown) having options A,B,C &D. But i need to make these options as LED push buttons. Is there a way to make a boolean to pass a string value? When pressed A, it should pass the string associated with it(say "Pressure") to the output and when pressed B, it should pass string "Temperature".
2. I have a device say P1. it polls for status and value in 2 iterations of a for loop(iteration 0 checks status and iteration 1 checks value). when I create a table, i get 2 entries of the same device, one with status and other with value. I want both value and status in a single entry of the device in the table. Can this be done? If yes then I need to make a subVI of this so that I can make a "show table" button in the mainVI which will display the table only when clicked.
Please let me know if the above details are not clear. Looking forward to your suggestions and inputs.
Thanks & Regards,
Sushruth.
Solved!
Go to Solution.Thanks a lot for the inputs. Q1 has been resolved. I just made it into an event case. Something like this:
Its working as I wanted. Regarding the Q2, I will upload the code as soon as possible.
Regards,
Sushruth.
Maybe you are looking for
-
My mac Doesn't seem to see my external hard drive (seagate 1tb) I have it usb'd in to the back of my computer, but when I open time machine...it does not see it. Help...please
-
Oracle Enterprise Manager is not coming up. (Urgent )
Hi All, I have installed Oracle Weblogic 10.3.5 and Oracle SOA 11.1.1.5 and OSB 11.1.1.5 in Production Mode. Now i have started all the servers and they are up and running but i cannot open em , and in admin console -->Deployments --> em is in failed
-
I have a table like this this table will show the customers , and its invoices and its taxes. A single customer can have single invoice or many invoices and a single invoice can have single tax or many taxes i need invoices which are having on RI tax
-
I have installed OIF and initial configurations seems to be fine. However, there is an error message on the home page saying 'agent unreachable'. I tried emctl start agent and the command executes successfully. but then when i try emctl status agent,
-
Loss of sound on ring / text alert
My iPhone 4 appears to be stuck on mute. I've re-set the phone and and can hear the ring in settings but there is no sound when i receive a call or text. Help much appreciated. Thanks, Peter