Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

An entry without PO number is getting inserted in STXH and STXL tables when user cilicks on print preview

former_member569532
Participant
0 Kudos

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

8 REPLIES 8

raymond_giuseppi
Active Contributor
0 Kudos

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

nabheetscn
Active Contributor
0 Kudos

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

0 Kudos

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.

0 Kudos

What have you changed? Can you please provide complete details so that we can have a clear picture!

Nabheet

0 Kudos

I have created a custom tab to  strore the emails IDs at the item level.

0 Kudos

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

0 Kudos

I have implemented the below user exits.But I didnit use commit work.

ZXM02O01

ZXM02TOP

ZXM02U01

ZXM02U03

ZXM06O02

ZXM06U40

0 Kudos

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'.