C++ and GTKMM Problem using function set_resizable()
When I set the function set_resizable to false, the window open too small and only shows the label .
What am I making wrong ?
The code:
#include <gtkmm/window.h>
#include <gtkmm/main.h>
#include <gtkmm/layout.h>
#include <gtkmm/button.h>
#include <gtkmm/box.h>
#include <gtkmm/buttonbox.h>
#include <gtkmm/label.h>
class Janela : public Gtk::Window{
public:
Janela() :
layout(),
adicionar("Adicionar"),
remover("Remover"),
pesquisar("Pesquisar"),
sobre("Sobre"),
cvbotao(Gtk::BUTTONBOX_START, 10),
label("bla bla bla bla"),
caixa(){
Gtk::Window::set_size(500,300);
Gtk::Window::set_resizable(false);
Gtk::Window::set_title("Receitas Vegetarianas");
add(caixa);
caixa.pack_start(layout);
caixa.pack_end(label);
cvbotao.add(pesquisar);
cvbotao.add(adicionar);
cvbotao.add(remover);
cvbotao.add(sobre);
layout.put(cvbotao,30,140);
layout.show();
label.show();
cvbotao.show();
adicionar.show();
remover.show();
pesquisar.show();
sobre.show();
caixa.show();
~Janela(){
protected:
Gtk::Button adicionar;
Gtk::Button remover;
Gtk::Button pesquisar;
Gtk::Button sobre;
Gtk::Layout layout;
Gtk::VButtonBox cvbotao;
Gtk::Label label;
Gtk::HBox caixa;
int main(int argc, char * argv[]){
Gtk::Main kit(argc, argv);
Janela janela;
Gtk::Main::run(janela);
please somebody delete this topic I got fix the problem change set_size by set_size_request.
Thanks
Similar Messages
-
Problem using functions in discov
Hi all,
I`m creating a report and I`m using 2 complex folders and 3 database functions as calculations.
when I use the first two the report works fine, but when I use the third function the report stop working.
works with almost 79000 rows. is it possible that the problem is I am using too much functios?
thanx for your time.Another check would be to get the SQL generated by the worksheet, and run it in SQL Plus to see whether there are any errors that pop up there.
-
Drag and drop problem using NW04 SPS 19
Hi,
we have a problem using drag and drop between two input fields. If i use this functionality i get after some minutes a message "A script on this page is causing IE to run slowly. If it continues to run, your computer may become unresponsive. Do you wan't to abort the script?"
Any idea to solve the problem?
If i try the same functionality on NW04s - it works fine.
Thanks in advance
Stefanclosed
-
Sending email and alert notifcation using function module
Hi All,
I am trying to send email and alert notification messages using function modules in CRM. I am unable to send mail using 'SO_DOCUMENT_SEND_API1'. Getting a short dump message "dictionary mismatch". If anyone knows any FM which can be used for sending mails, please let me know. I also want to send alert messages using some FM. Please let me know any FM in this case as well.
All help appreciated. This is urgent and please get back to me soon.
Thanks
DenoHi Ranjit,
Thanks a lot for the reply. I already tried these FMs and getting the error message
Trigger Location of Runtime Error
Program SAPLBUPA_INTERFACE_TDTRANS
Include LBUPA_INTERFACE_TDTRANSTOP
Row 4
I dont know the reason behind the error. The SO_document_send FM is used inside all these FMs. So It wont work.
Thanks
Deno -
Problem using function SO_DOCUMENT_SEND_API1,
Dear All,
I used this function for attach the txt file and send the e-mail to relate user.
Now, My output file print out all the data in the same line.
how i can split the data line by line ?
below is my coding.
Please kindly to help me.
Regards,
Luke
PERFORM send_file_as_email_attachment
TABLES it_mess_bod
it_mess_att
USING P_TITLE
'FIX'
gd_attachment_name
gd_attachment_desc
p_FROM
'INT'
CHANGING gd_error
gd_reciever.
*& Form send_file_as_email_attachment
text
-->IT_MESSAGE text
-->IT_ATTACH text
-->P_MTITLE text
-->P_FORMAT text
-->P_FILENAME text
-->P_ATTDESCRIPTION text
-->P_SENDER_ADDRESS text
-->P_SENDER_ADDRES_TYPE text
-->P_ERROR text
-->P_RECIEVER text
FORM send_file_as_email_attachment TABLES it_message
it_attach
USING p_email
USING p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
CHANGING p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
w_cnt TYPE i,
w_sent_all(1) TYPE c,
w_doc_data LIKE sodocchgi1.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
Fill the document data.
w_doc_data-doc_size = 1.
Populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = it_attach[].
Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
Create attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
t_packing_list-doc_size = t_packing_list-body_num * 255.
APPEND t_packing_list.
Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
LOOP AT itab_mailto.
t_receivers-receiver = itab_mailto-smtp_addr.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
t_receivers-copy = ''.
APPEND t_receivers.
ENDLOOP.
LOOP AT S_CC.
t_receivers-receiver = S_CC-low.
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
t_receivers-copy = 'X'.
APPEND t_receivers.
ENDLOOP.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Populate zerror return code
ld_error = sy-subrc.
Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM. "send_file_as_email_attachmentHi,
Try This ....
DATA: l_tab_lines TYPE i,
l_error TYPE string.
CONSTANTS : l_c_name(13) TYPE c VALUE 'HC Error File', "#EC NOTEXT
l_c_255(255) TYPE c VALUE '255',
l_c_txt(3) TYPE c VALUE 'TXT'.
DATA: lt_reclist TYPE STANDARD TABLE OF somlreci1, "Recipients
lt_objpack TYPE STANDARD TABLE OF sopcklsti1,
lt_objhead TYPE STANDARD TABLE OF solisti1,
lt_objtxt TYPE STANDARD TABLE OF solisti1, "Body of EMail
lt_objbin TYPE STANDARD TABLE OF solisti1."Attachment of EMail
DATA: l_wa_doc_chng TYPE sodocchgi1, "attributes of document to send
l_wa_reclist LIKE LINE OF lt_reclist,
l_wa_objpack LIKE LINE OF lt_objpack,
l_wa_obj LIKE LINE OF lt_objhead.
Begin of Insert CHRK941885
DATA :
l_hex LIKE solix,
lt_contents_hex LIKE STANDARD TABLE OF solix ,
conv TYPE REF TO cl_abap_conv_out_ce,
l_buffer TYPE xstring,
l_hexa(510) type x.
End of Insert CHRK941885
Fill attachment contents: body of email message
CONCATENATE 'Click on attachment to view the extract file :'(t01)
l_c_name INTO l_wa_obj-line SEPARATED BY space.
APPEND l_wa_obj TO lt_objtxt. CLEAR l_wa_obj.
APPEND l_wa_obj TO lt_objtxt. CLEAR l_wa_obj.
DESCRIBE TABLE lt_objtxt LINES l_tab_lines.
Information about the email body data
CLEAR l_wa_objpack-transf_bin. "Attachment not binary
l_wa_objpack-head_start = 1.
l_wa_objpack-head_num = 0.
l_wa_objpack-body_start = 1.
l_wa_objpack-body_num = l_tab_lines * l_c_255.
l_wa_objpack-doc_type = 'TXT'.
APPEND l_wa_objpack TO lt_objpack.
CLEAR :l_wa_objpack.
Move error records to the file, semi-colon delimited
LOOP AT e_error INTO g_error.
CONCATENATE g_error-pernr ';'
g_error-nachn ';'
g_error-vorna ';'
g_error-werks ';'
g_error-persg ';'
g_error-eligr ';'
g_error-msg INTO l_error.
APPEND l_error TO lt_objbin.
ENDLOOP.
Document type is TXT
l_wa_objpack-doc_type = l_c_txt.
APPEND object_header.
CALL FUNCTION 'SO_RAW_TO_RTF'
TABLES
objcont_old = lt_objbin
objcont_new = lt_objbin.
Begin of Insert CHRK941885
LOOP AT lt_objbin into l_error.
conv = cl_abap_conv_out_ce=>create( encoding = 'UTF-8' endian = 'B').
CALL METHOD conv->write( data = l_error ).
l_buffer = conv->get_buffer( ).
move l_buffer to l_hexa.
move l_hexa to l_hex-line.
APPEND l_hex to lt_contents_hex.
ENDLOOP.
End of Insert CHRK941885
File name for attachment
l_wa_obj = l_c_name.
APPEND l_wa_obj TO lt_objhead.
CLEAR l_wa_obj.
DESCRIBE TABLE lt_objbin LINES l_tab_lines.
Creation of the entry for the compressed attachment
l_wa_objpack-transf_bin = 'X'.
l_wa_objpack-head_start = 1.
l_wa_objpack-head_num = 1.
l_wa_objpack-body_start = 1.
l_wa_objpack-obj_name = l_c_name.
l_wa_objpack-obj_descr = l_c_name.
l_wa_objpack-body_num = l_tab_lines.
l_wa_objpack-doc_size = l_tab_lines * l_c_255.
APPEND l_wa_objpack TO lt_objpack.
CLEAR l_wa_objpack.
Completing the recipient list
LOOP AT s_email.
l_wa_reclist-receiver = s_email-low.
l_wa_reclist-express = 'X'.
l_wa_reclist-rec_type = 'U'.
APPEND l_wa_reclist TO lt_reclist.
CLEAR l_wa_reclist.
ENDLOOP.
Document to send
MOVE 'Health Risk Assessment Batch extract'(h01)
TO l_wa_doc_chng-obj_descr.
Send mail as a confidential
l_wa_doc_chng-sensitivty = 'P'.
Send the document
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = l_wa_doc_chng
put_in_outbox = ' '
commit_work = 'X'
TABLES
packing_list = lt_objpack
object_header = lt_objhead
contents_bin = lt_objbin " Comment CHRK941885
contents_txt = lt_objtxt
contents_hex = lt_contents_hex " Insert CHRK941885
receivers = lt_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc = 0.
MESSAGE s000(oo) WITH 'Email sent to recipients'(s12).
To refresh SAP Work Office so that mail can be recieved immediataly.
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = ''
AND RETURN.
ELSE.
MESSAGE e000(oo) WITH 'Problem sending Email.'(e02).
ENDIF. -
Serious Problem using function
Hello mates,
I new to Oracle JDBC and im working on a project that uses Oracle as DB. There are some stored procedures and functions that i have to access , but some of them are getting me nervous. The problem is that when i call a simple function returning a simple CHAR i get the result OK, but when i call two specific functions that also returns CHAR i get null as result, the problem is that when i call them from sqlplus and from Perl i get the result OK, but i call the like SELECT USR_ONLINE.MONTAPOP(160008,'') AS TEST FROM DUAL. Plz help me solve this problem cause my project is stopped because of that.
Ty Very much. Here comes my code:
String sql ="{ ? = call USR_ONLINE.MONTAPOP(160008,'') }";
OracleCallableStatement cstmt = (OracleCallableStatement) con.prepareCall(sql);
cstmt.registerOutParameter(1,Types.CHAR);
cstmt.execute();
System.out.println(cstmt.getString(1));Bruno,
I get the impression that English is not your first language, so excuse me if I have misunderstood your question.
From the code you posted, it looks like the "MONTAPOP" function takes two parameters -- a NUMBER and a VARCHAR2, I believe -- and that you are calling the function with a null second parameter.
If the above is correct, then I suggest the following:
[Note: Uncompiled and untested.]
String sql ="{? = call USR_ONLINE.MONTAPOP(?,?)}";
CallableStatement cstmt = con.prepareCall(sql);
cstmt.registerOutParameter(1,Types.CHAR);
cstmt.setBigDecimal(2, new BigDecimal(160008));
cstmt.setNull(3, Types.VARCHAR);
cstmt.execute();
System.out.println(cstmt.getString(1));Good Luck,
Avi. -
Problem using Function Module IDOC_INBOUND_ASYNCHRONOUS
Hi friends,
I have a critical problem load idoc ARTMAS05. I development a program for load the data with idoc but my program call the function module IDOC_INBOUND_ASYNCHRONOUS close my session of the SAP GUI and lose the load. This problem begining today because yesterday was work well. This morning when I'm load the idoc gave to me a short dump with this message "SNAP_NO_NEW_ENTRY" I have find some notes and obtained this note 17537.
Note Solution
Solution
When the SNAP Table is full: Reorganize the table e.g. via Transaction ST22->Go to->Reorganize. Please also refer to Note 16083. This may lead to other errors of this kind since not all dumps e.g. from SM21 can be displayed.
In case of database problems, the errors should no longer occur with new short dumps after correcting the database error. Here, other errors of this kind may occur in SM21 as well.
After apply the correction begin the error that I close me the Session of SapGui and lose all my data proccessing. Please need your help.
Thank and regards..Hi Sir,
I am also facing the same issue...i need to update dependents Information Date Of Birth n Perid(Which is stored in IT0106)...in IT 0021..
Kindly correct my code....
I am using the following code for this...
data: w_return type bapireturn1.
data: p0021_struc TYPE p0021,
p0106_struc TYPE p0106,
p_pskey TYPE pskey.
start-of-selection.
get pernr.
p0021_struc = p0021.
p0021_struc-favor = 'Gaurav'.
p0021_struc-fgbdt = '05/10/1955'.
Move p0021_struc-favor to p0021-favor.
p0106_struc = p0106.
p0106_struc-stras = '2235 BOmbay Road'.
p0106_struc-perid = '123456789'.
MOVE p0106_struc-stras to p0106-stras.
Enqueue personnel number
call function 'BAPI_EMPLOYEE_ENQUEUE'
exporting
number = pernr-pernr
importing
return = w_return.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = p_pskey-infty
number = p_pskey-pernr
subtype = p_pskey-subty
objectid = p_pskey-objps
lockindicator = p_pskey-sprps
validityend = p0021-endda " '99991231'
validitybegin = p0021-begda
record = p0021_struc
operation = 'mod'
tclas = 'A'
dialog_mode = '2'
nocommit = p_test
VIEW_IDENTIFIER = '07' "p0003-viekn
secondary_record = p0106_struc
IMPORTING
return = w_return
key = familykey
EXCEPTIONS
OTHERS = 0.
Enqueue personnel number
call function 'BAPI_EMPLOYEE_DEQUEUE'
exporting
number = pernr-pernr
importing
return = w_return. -
Problem using function call in WHERE part of a Report's SQL query
I tried doing some searches on this, but couldn't find anything. I'm trying to run something similar to the following query in my report, but keep getting a "Query cannot be parsed within the Builder" error:
SELECT function1(TABLE2.ID) A
FROM TABLE1, TABLE2
WHERE TABLE1.ID = TABLE2.ID AND
TABLE1.NAME = 'BLAH' AND
TABLE2.DATE > SYSTIMESTAMP AND
(function2(TABLE2.ID) = 'YES' OR
function3(:USER_ID) = 'YES')
ORDER BY TABLE1.NAMEWhy won't this work? I can take out the 2 lines with function calls from the WHERE clause, and it works, so I'm assuming that APEX doesn't like something about my function calls. I know the functions are valid and work properly, because I tested them independently. Can anyone see what the problem is? Thanks!Here's the actual query:
SELECT BUILD_EXT_RES_LIST(EXT_FILE.ID) A
FROM EXT_FILE_RES, EXT_FILE
WHERE EXT_FILE_RES.ON_OWNER_PROFILE = 'Y' AND
EXT_FILE.OWNER_ID = :PROFILE AND
EXT_FILE.ID = EXT_FILE_RES.EXT_ID AND
(RES_SUBSCRIBER_YN(EXT_FILE.ID,:CURR_ID) = 'YES' OR
ADMINYESNO(:CURR_ID,:PROFILE) = 'YES')
ORDER BY EXT_FILE.FILE_NAMEAnd here's the actual error message:
1 error has occurred
Query cannot be parsed within the Builder. If you believe your query is syntactically correct, check the ''generic columns'' checkbox below the region source to proceed without parsing. ORA-00904: "SER_IS_ADMINYESNO": invalid identifier -
Hi,
I am using RH_STRUC_GET with evalPath O-O-S-P and get the or g structure. I then loop through the table obtained from RH_STRUC_GET and re-use RH_STRUC_GET with a evaluation path 'bossonly' to find out who the managers are. But it does not work. I get No ROOTS FOUND error.
When I try the function module RH_STRUC_GET separately with the same input fields then it works!!!
Please let me know if I am doing anything wrong. My code is shown below....
FUNCTION Z_ORGBUILDER_CONN.
""Local interface:
*" IMPORTING
*" VALUE(OTYPE) LIKE OBJEC-OTYPE
*" VALUE(OBJID) LIKE OBJEC-OBJID
*" VALUE(PATHID) LIKE GDSTR-WEGID
*" VALUE(PLVAR) LIKE OBJEC-PLVAR
*" EXPORTING
*" VALUE(RETURN) LIKE BAPIRET2 STRUCTURE BAPIRET2
*" TABLES
*" L_ZCONN_TAB TYPE ZCONN_TAB
*" RESULT_TAB STRUCTURE SWHACTOR OPTIONAL
*" RESULT_OBJEC STRUCTURE OBJEC OPTIONAL
*" RESULT_STRUC STRUCTURE STRUC OPTIONAL
*" L_ZCONN_ORG TYPE ZCONN_TAB
*" L_ZCONN_POS_HOLDER TYPE ZCONN_POS_TAB
*" L_MANAGERS STRUCTURE OBJEC
DATA: z_struc type zconn_struc.
DATA: xresult_struc like result_struc.
DATA: yresult_struc like result_struc.
DATA: z_struc1 type zconn_struc.
DATA: z_struc_pos type zconn_position.
DATA: temp_tab LIKE SWHACTOR occurs 0 with HEADER LINE.
DATA: temp like struc-objid.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = otype
act_objid = objid
act_plvar = plvar
act_wegid = pathid
TABLES
result_tab = result_tab
result_struc = result_struc
result_objec = result_objec
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
RAISE no_roots_found.
ENDIF.
LOOP AT result_struc into xresult_struc.
read table result_struc into yresult_struc with key seqnr =
xresult_struc-pup.
if sy-subrc = 0.
z_struc-objectID = xresult_struc-OBJID.
z_struc-objectType = xresult_struc-otype.
z_struc-parentID = yresult_struc-objid.
z_struc-parentType = yresult_struc-otype.
endif.
Append z_struc to l_zconn_tab.
ENDLOOP.
LOOP AT l_zconn_tab.
if l_zconn_tab-objectType = 'O' or l_zconn_tab-objectType = 'S'.
z_struc1-objectID = l_zconn_tab-objectID.
z_struc1-objectType = l_zconn_tab-objectType.
z_struc1-parentID = l_zconn_tab-parentID.
z_struc1-parentType = l_zconn_tab-parentType.
Append z_struc1 to l_zconn_org.
endif.
ENDLOOP.
LOOP AT l_zconn_tab.
if l_zconn_tab-objectType = 'P'.
z_struc_pos-position = l_zconn_tab-parentID.
z_struc_pos-pos_holder = l_zconn_tab-objectID.
Append z_struc_pos to l_zconn_pos_holder.
endif.
ENDLOOP.
loop at result_struc.
if result_struc-otype = 'O'.
CALL FUNCTION 'RH_STRUC_GET'
EXPORTING
act_otype = 'O'
act_objid = result_struc-objid
act_plvar = '01'
act_wegid = 'bossonly'
TABLES
result_tab = temp_tab
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
RAISE no_roots_found.
ENDIF.
APPEND LINES OF temp_tab to L_managers.
endif.
endloop.
ENDFUNCTION.data: begin of itab occurs 0,
orgunit(10) type c,
mananger(30) type c,
end of itab.
* This will add a record to your itab
loop at result.
itab-orgunit = result-orgunit. " I don't know what fields they are
itab-manager = result-manager.
append itab.
endloop.
Please remember to award points for helpful answers and mark this post as solved if you question has been answered. Thanks.
Regards,
Rich Heilman -
Problem using function module for infotype 21
hi
im uploading the infotype 21 (family details) through function module hr_infotype_operations. i found that infotype 0106 (family/related person)
is a secondary infotype and that a record is created for 0106 ,everytime you create a record in 21. so i upload the family data of an employee using the function module for infotype 21 initially. and then fetch the same record from the table pa0106 and modify the same record with other information.
for example : u have the address details of a dependent(father subtype 11) in infotype 21. this address data is stored in the table pa0106 . im not able to modify the record for infotype 0106 using the function module 0106.
i would like to know the reason for the same. Is it because that infotype 0106 is a secondary infotype and u cannot modify the record using the fn module..?/
thanks
sridharanHi Sir,
I am also facing the same issue...i need to update dependents Information Date Of Birth n Perid(Which is stored in IT0106)...in IT 0021..
Kindly correct my code....
I am using the following code for this...
data: w_return type bapireturn1.
data: p0021_struc TYPE p0021,
p0106_struc TYPE p0106,
p_pskey TYPE pskey.
start-of-selection.
get pernr.
p0021_struc = p0021.
p0021_struc-favor = 'Gaurav'.
p0021_struc-fgbdt = '05/10/1955'.
Move p0021_struc-favor to p0021-favor.
p0106_struc = p0106.
p0106_struc-stras = '2235 BOmbay Road'.
p0106_struc-perid = '123456789'.
MOVE p0106_struc-stras to p0106-stras.
Enqueue personnel number
call function 'BAPI_EMPLOYEE_ENQUEUE'
exporting
number = pernr-pernr
importing
return = w_return.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = p_pskey-infty
number = p_pskey-pernr
subtype = p_pskey-subty
objectid = p_pskey-objps
lockindicator = p_pskey-sprps
validityend = p0021-endda " '99991231'
validitybegin = p0021-begda
record = p0021_struc
operation = 'mod'
tclas = 'A'
dialog_mode = '2'
nocommit = p_test
VIEW_IDENTIFIER = '07' "p0003-viekn
secondary_record = p0106_struc
IMPORTING
return = w_return
key = familykey
EXCEPTIONS
OTHERS = 0.
Enqueue personnel number
call function 'BAPI_EMPLOYEE_DEQUEUE'
exporting
number = pernr-pernr
importing
return = w_return. -
I have Oracle 9i and the manual says that I can use de VARIANCE, VAR_SAMP and STDDEV_SAMP functions, but when I use it it gives me the following error "Function VARIANCE is not defined in the expresion", could Anybody tell me what is wrong?, thanks
What exact version of the DB are you running?
Also, post the SQL statement and the exact complete error stack.
SQL> select variance(sal) from scott.emp ;
VARIANCE(SAL)
1398313.87
SQL> disconnect
Disconnected from Oracle9i Enterprise Edition Release 9.2.0.5.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.5.0 - Production
SQL> -
Apple TV and Remote Problems using Airport Extreme
Had issues with power outage last summer just recently got back to resetting airport extreme , and now my apple remote does not work evan after changing out battery's for my apple TV . The TV comes up trying to set date and time and never makes a connection, so Im unable or unaware of another way to get to the apple settings to check settings.
The fist problem is date and time.
Assuming this is not the first time you have used your Apple TV
You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
Also try restarting the router.
If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
If this is a new Apple TV, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123
Once you get that sorted you can look to sort your remote.
Your Apple TV may have become paired with another remote. Hold the remote close to and pointed at the Apple TV, hold down the menu and Rewind buttons together for 6 seconds or until you see a broken chain icon on screen. -
Convenience and easy to use, functionality
the new FF 4 looks great and the features are good! but how come the FF function icon is locate on the left, but the home and bookmark function icon are on the right? U have to more the mouse from left to right or right to left, very smart? also, when U are in private browsing, U don't see the sight indicate that U are in it?
Generally, all applications are uninstalled just dragging them to the Trash. If it came with an uninstaller and you used it, there's nothing to worry about.
Also, what was that application you installed? -
Copy and paste problems using adobe
Hello, I am having an issue using the copy and paste options from a secure site into a word document. It is giving me the option to copy, but when I paste it into my word documunt, it gives me a black box in the place where it should have been pasted. Please help me with this issue. Thanks!!
What does this have to do with InCopy?
Bob -
Drag and drop problem using .as
Hi , with the code below, I can pick up object but, as soon as I mouse-up, the object snaps back to its original x and y position.
Can someone please tell me what I am doing wrong AND how I can randomize objects.
package
import flash.display.MovieClip;
import flash.events.MouseEvent;
import flash.display.DisplayObject;
import Card;
import Targetdog;
import Targetcat;
import Targetbird;
import Dog;
import Cat;
import Bird;
public class DragDrop extends MovieClip
private var _card:Card;
private var _card2:Card
private var currentTargetdog:Targetdog;
private var currentTargetcat:Targetcat;
private var currentTargetbird:Targetbird;
private var bird:Bird;
private var cat:Cat;
private var dog:Dog;
private var _cardX:Number;
private var _cardY:Number;
private var _card2X:Number;
private var _card2Y:Number;
var startX:Number;
var startY:Number;
var counter:Number = 0;
public function DragDrop()
createCards();
createCards2();
private function createCards():void
_cardX = 100;
_cardY = 25;
for (var i:Number = 0; i<1; i++)
_card = new Card();
addChild(_card);
currentTargetdog = new Targetdog();
_card.setType(currentTargetdog);
_card.x = _cardX;
_card.y = _cardY;
_cardY += _card.height + 1 ;
for (var j:Number = 0; j<1; j++)
_card = new Card();
addChild(_card);
currentTargetcat = new Targetcat();
_card.setType(currentTargetcat);
_card.x = _cardX;
_card.y = _cardY;
_cardY += _card.height + 1 ;
for (var k:Number = 0; k<1; k++)
_card = new Card();
addChild(_card);
currentTargetbird = new Targetbird();
_card.setType(currentTargetbird);
_card.x = _cardX;
_card.y = _cardY;
_cardY += _card.height +1;
private function createCards2():void
_card2X = 450;
_card2Y = 25;
for (var a:Number = 0; a<1; a++)
_card2 = new Card();
addChild(_card2);
dog = new Dog();
_card2.setType(dog);
_card2.x = _card2X;
_card2.y = _card2Y;
_card2Y += _card2.height + 1 ;
for (var b:Number = 0; b<1; b++)
_card2 = new Card();
addChild(_card2);
cat = new Cat();
_card2.setType(cat);
_card2.x = _card2X;
_card2.y = _card2Y;
_card2Y += _card2.height + 1 ;
for (var c:Number = 0; c<1; c++)
_card2 = new Card();
addChild(_card2);
bird = new Bird();
_card2.setType(bird);
_card2.x = _card2X;
_card2.y = _card2Y;
_card2Y += _card2.height +1;
dog.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
dog.addEventListener(MouseEvent.MOUSE_UP, dropIt);
bird.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
bird.addEventListener(MouseEvent.MOUSE_UP, dropIt);
cat.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
cat.addEventListener(MouseEvent.MOUSE_UP, dropIt);
function pickUp(event:MouseEvent):void {
event.currentTarget.startDrag();
event.currentTarget.parent.addChild(event.currentTarget);
startX = event.currentTarget.x;
startY = event.currentTarget.y;
function dropIt(event:MouseEvent):void {
//reply_txt.text = "Daaa";
event.currentTarget.stopDrag();
var mycurrentTargetName:String = "currentTarget" + event.currentTarget.name;
var mycurrentTarget:DisplayObject = getChildByName(mycurrentTargetName);
if (event.currentTarget.dropcurrentTarget != null && event.currentTarget.dropcurrentTarget.parent == mycurrentTarget){
//reply_txt.text = "Trés bien!";
event.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, pickUp);
event.currentTarget.removeEventListener(MouseEvent.MOUSE_UP, dropIt);
event.currentTarget.buttonMode = false;
event.currentTarget.x = mycurrentTarget.x;
event.currentTarget.y = mycurrentTarget.y;
counter++;
} else {
//reply_txt.text = "Essaie encore!";
event.currentTarget.x = startX;
event.currentTarget.y = startY
//if(counter == 3)
dog.buttonMode = true;
cat.buttonMode = true;
bird.buttonMode = true;Hi Ned,
sorry about the code centering. That happened during copying and pasting.
The line in question is the trace statement you suggested.
I am still finding that moving the brace in question also makes a difference to the output information I receive.
Maybe you are looking for
-
Extracting difference is attributes for a given row in two different tables
Hope you are doing great. Below is the problem i am facing. There are two tables 1: employeeinfo (HR maintains this table and we cannot alter the records of this table) 2: cmp_employee_info (i have created this table with limited fields we need to mo
-
It does not load List in Task List side panel. How to fix?
I access Google Task on web with no problem, but my newly installed Thunderbird does not show tasks in the Task List Side Panel. Does anyone have a fix? Thank you Stephen
-
BAPI_PO_CRETE1:No instance of object type PurchaseOrder has been created
Hi All, It's very urgent,can u plz guide me how to use <b>BAPI_PO_CRETE1</b> I am getting the folowing errorrs while creating,<b>esp the error 1</b> can u plz guide me what are all the parameters to to pass to suppress this error <b>1. No instance of
-
Transfering files from an older time capsule to a newer one
What is the easiest way to transfer files and settings from an older time capsule to a newer one (4th gen)? I'd like to move my backup files from my old TC to my new one without the hassle of occupying my computer overnight. Message was edited by:
-
Using Smart Build with Text of a Title
I'm brand new to Keynote. I have successfully put in text for a title where the words of the title are in separate text boxes and move into a straight mid line. I tried to put a smart build of a sunrise in the background, but for some reason I could