Application Development and Automation 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: 
Read only

Printing Texts

Former Member
0 Likes
2,004

Hi All,

In transaction ME22N, under TEXT tab various header texts are displayed. Whenever any text is changed system takes a print of changed text. I want to block printing of these texts except for Header Text.

Is there any way to implement this?

Regards,

Pratibha.

Hi All,

In transaction ME22N, under TEXT tab various header texts are displayed. Whenever any text is changed system takes a print of changed text. I want to block printing of these texts except for Header Text.

Is there any way to implement this?

Regards,

Pratibha.

12 REPLIES 12
Read only

Former Member
0 Likes
1,758

Hi Pratibha,

Just remove all entries from table T166A & T166K where

DRUVO = '2' and BSTYP & BSART of the Po type which you want to block output of text changes . This is a config task .

Cheers

Read only

0 Likes
1,758

Thanks Sanjay for quick reply.

I want to slightly modify my question.

When I make change in any text like header note or pricing types, system takes print of header text. I want to block this printing except for header text(F01 type) change.

I checked in table T166A. Text types from F03 to F14 are added for DRUVO = 2 and Purchasing document category = F(Purchasing Order)and Purchasing document type = NB(Standard PO).

Table T166A does not have F02, still if changes are made for header text note F02, system takes print.

Please suggest.

Thanks

Pratibha

Read only

0 Likes
1,758

Hi All,

Any suggestions for this query?

Thanks

Pratibha

Read only

0 Likes
1,758

Hi Pratibha,

Are you using your custom print program or standard one.

If "F02" is not maintained in T166K & T166A for DRUVO = 2 and document type "NB", then even if you change header note an output will be proposed but when you try to output it in ME9F it will give an information message " No print relevant change " and will not print . You can see the message in yellow status in ME22 -> Header -> Messages.

Any change ( whether print relevant or not ) to PO will propose an output but whether it will print or not will depend on if it is print relevant. Print relevant text ids are mintained in T166K & T166A

I am not sure what is wrong in your system . Which version you are on.

Cheers.

Read only

0 Likes
1,758

Hi Sanjay,

Yes there is print program and a layout set to take print of these messages.

Regards

Pratibha

Read only

0 Likes
1,758

You didn't get my message . My question was whether your print program is custom or standard . I understand without print program you cannot print .

Cheers.

Read only

0 Likes
1,758

Sanjay,

There is a custom print program, which takes a print like 'xxxxxxxxx text changed' when any of the header texts is changed. I want to eliminate this printing except for text F01.

Pratibha

Read only

0 Likes
1,758

So then you can mofdify your print program. There is an internal table called XAEND to print all the changes .

For texts you can check XAEND ( or may be a slightly diff name as you have a custom program ) field TEXTART.

It will have the values "F01" / "F02" .

You can do something like this.

If DRUVO = 2. "change order

loop at xaend where textart ne space.

if xaend-textart ne 'F01'.

delete xaend.

endif.

endloop.

endif.

But you will have to find the correct place to put this code .

Cheers

( Dont forget to reward if answers were helpful )

Read only

0 Likes
1,758

Sanjay,

I want to debug customized print program while saving header texts in me22n tcode.

I tried several options but control from me22n tcode does not go to print program.

Any suggestions?

Thanks

Pratibha

Read only

0 Likes
1,758

In the output condition record change the date/time to "1" ( Send with periodically scheduled job ). Create a new PO and save it. Put a break point in your print program. Goto tcode ME9F - > Print preview. Your program should stop.

In ME22N the messages are processed in update task . You can even debug here . Before pressing the save button, give "/H" in command field. In Debugging ->Setting, check update debugging , - Save . Now press F8 , you will see another session in update task . Here BREAKPOINT -> AT SUBROUTINE ( give your print program and subroutine configured in output type ). Press F8 , your program should stop at the first executable statement in subroutine.

Cheers.

Read only

0 Likes
1,758

Hi,

I am sure these texts get updated as a part of a table. I can see the same tab page for me51n transactions also. But I do not find text fields as a part of EBAN.

Could you kindly give some information regarding this?

Thanks.

Read only

Former Member
0 Likes
1,758

Hi All,

I am facing a problem while printing a changed purchase order.

It is taking the DRUVO = '1' instead of '2' which it should take for the changed purchase order.

After debugging i found initially it is taking as '2' and after passing through this function module it is coming back to calue '1'. Later i couldn t figure out why this is happening

CALL FUNCTION 'ME_READ_PO_FOR_PRINTING'

EXPORTING

ix_nast = iv_nast

ix_screen = ent_screen

IMPORTING

ex_retco = ent_retco

ex_nast = l_nast

doc = l_doc

CHANGING

cx_druvo = iv_druvo

cx_from_memory = l_from_memory

Can anybody help me out what may be the case in this situation.

Regards,

Saurabh