01-22-2016 6:58 AM
Hi Experts,
An entry with the empty Po number is getting inserted in the text tables STXH and STXL. This is issue is coming when the users click on print preview
without saving the PO.This is not happening for all POs. Any one encountered this problem before.Does any changes to the PO BADIs or userexits is the reason for this ? .Please anyone advise how to resolve this problem.
Thanks & Regards,
Anusha.B
01-22-2016 7:05 AM
Did you execute the transaction with SAT/SE30 in debug mode to identify the partial "commit" trigger origin. Also did you analyze version changes or activation of BAdI/Exit/Form ?
Regards,
Raymond
01-22-2016 7:13 AM
In addition to what Raymond suggested put a break point in SAVE_TEXT/COMMIT_TEXT FM also, check in your driver program also if something being saved.
NAbheet
01-22-2016 8:58 AM
Hi Nabneth,
We have changed the BADI/User exit at the item level only.I am just guessing the reason for that and this is happening only some times.
Thanks & Regards,
Anusha.
01-22-2016 9:00 AM
What have you changed? Can you please provide complete details so that we can have a clear picture!
Nabheet
01-22-2016 9:05 AM
I have created a custom tab to strore the emails IDs at the item level.
01-22-2016 9:21 AM
Yes that is fine but did you use any commit work? Attach the code..
Complete Detail please..which badi/enhancment/code/screenshots? We can not guess!
Nabheet
01-22-2016 9:27 AM
I have implemented the below user exits.But I didnit use commit work.
ZXM02O01
ZXM02TOP
ZXM02U01
ZXM02U03
ZXM06O02
ZXM06U40
01-22-2016 9:32 AM
ZXM02U03
DATA : l_mereq_item TYPE mereq_item.
IF NOT im_req_item IS INITIAL.
l_mereq_item = im_req_item->get_data( ).
MOVE-CORRESPONDING ci_ebandb TO l_mereq_item .
CALL METHOD im_req_item->set_data( l_mereq_item ).
ex_changed = 'X'.
ENDIF.
ZXM02U01
TABLES : ci_ebandb.
DATA : lv_mereq_item TYPE mereq_item. "gv_trtyp type AKTVT.
*CALL METHOD im_req_item->get_activity
*RECEIVING re_aktvt = gv_trtyp.
*
*CASE gv_trtyp.
*WHEN 'A'.
* FL_INPUT = SPACE. "Output only
*WHEN 'V' or 'H'.
* FL_INPUT = 'X'. "Input/Output
*ENDCASE.
IF im_req_item IS INITIAL.
CLEAR: ci_ebandb.
ELSE.
lv_mereq_item = im_req_item->get_data( ).
MOVE-CORRESPONDING lv_mereq_item TO ci_ebandb.
ENDIF.
MODULE modify_0111 OUTPUT.
* if gv_mode is INITIAL.
LOOP AT SCREEN.
IF screen-group1 = 'GR1'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
* endif.
ZXM02U02
if gv_mode is not INITIAL.
if not ( sy-tcode eq 'ME29N' or sy-tcode = 'ME28' ).
LOOP AT SCREEN.
IF screen-group2 = 'GR2'.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
endif.
endif.
ENDMODULE. " M
ZXM06U40
e_ci_ekpo-zzeprs_number = ekpo_ci-zzeprs_number.
e_ci_ekpo-zzeprs_item = ekpo_ci-zzeprs_item.
e_ci_ekpo-zzeprs_ind = ekpo_ci-zzeprs_ind.
e_ci_ekpo-zzeprs_creator = ekpo_ci-zzeprs_creator.
e_ci_ekpo-zzeprs_type = ekpo_ci-zzeprs_type.
e_ci_ekpo-zzeprs_creator_email = ekpo_ci-zzeprs_creator_email.
e_ci_ekpo-zzeprs_requestor_email = ekpo_ci-zzeprs_requestor_email.
e_ci_ekpo-zzeprs_Vendor_email = ekpo_ci-zzeprs_Vendor_email.
e_ci_update = 'X'.