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

Issue

madan_ullasa
Contributor
0 Likes
1,381

Hi frnds,

I have a print prog - yprint. form - yform .

The print prog. is inbetween a routine which has been named as entry_neu. An o/p message has been created.. The doc. no. is passed from trans. code ME9F.

plz tell me hoe i capture this doc. no. from ME9F in my prog. and also im not getting the desired o/p. When i run the prog. from SE38, it is working fine. But from ME9F it is not working fine. If any one from india has any solution kindly pass your contact no. i vil call u up.

Or u can as well reply me.

regards,..........Points assured.

Madan.....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,345

Hi Madan,

This could happen due to incorrect TNAPR table contents. Check under debugger, the value of TNAPR-PGNAM (Print Program name, TNAPR-FONAM(SAPScript name) & TNAPR-RONAM (Subroutine name). If these do not show up correctly, especially the program name, then you have the problem. Check if under the subroutine, the TNAPR-PGNAM is not getting overwritten by SY-REPID. This could also be seen under the call function 'OPEN_FORM'.

The value of the document number should be available from the NAST structure, i.e. NAST-OBJKY.

Hope this helps. Write back if you find anything.

Thanks,

Chaps.

10 REPLIES 10
Read only

Former Member
0 Likes
1,345

hi,

for purchase order

Print Program is SAPFM06P and

Form Routine is ENTRY_NEU.

For Layout : Z.....

have you create your own print program, /

in NACE check your program and layout attached correctly.

cheers,

sasi

Read only

0 Likes
1,345

Hi Sasi,

I have created my own print program.

in the o/p msg type my print program name, form name and the form routine as entry_enu has been created. The form is run by ME9F. Do i need to interface ME9F to my print program? and also tell me hoe to do it?

Read only

0 Likes
1,345

hi,

in ME9F - > Message Data -> select your message type

and check all your code written under ENTRY_NEU routine

(verify this routine in program SAPFM06P)

if above things are not worked out then set breakpoint in your program and see what happens.

cheers,

sasi

Read only

Former Member
0 Likes
1,345

I am not in india, anyway when you issue print fro ME9F, it goes into RSNAST00 program and there it will decide which print program it has to call. In RSNAST00 program below code where it will call the print progam generaly around 811 line no.

PERFORM (TNAPR-RONAM) IN PROGRAM (TNAPR-PGNAM) USING RETURNCODE S_SCREEN IFFOUND.

There you will find document no in NAST-OBJKY.

Put a break point at this place and see this value you will find in this variable.

Let me know if you need any more info

Cheers,

satya

Read only

Former Member
0 Likes
1,346

Hi Madan,

This could happen due to incorrect TNAPR table contents. Check under debugger, the value of TNAPR-PGNAM (Print Program name, TNAPR-FONAM(SAPScript name) & TNAPR-RONAM (Subroutine name). If these do not show up correctly, especially the program name, then you have the problem. Check if under the subroutine, the TNAPR-PGNAM is not getting overwritten by SY-REPID. This could also be seen under the call function 'OPEN_FORM'.

The value of the document number should be available from the NAST structure, i.e. NAST-OBJKY.

Hope this helps. Write back if you find anything.

Thanks,

Chaps.

Read only

Former Member
0 Likes
1,345

Hi,

ME9F for Purchase order/Requisition printing.

Please check wheather your out put is properly assigned. Please use T/code "NACE" .

Check application "EF" for purchase order.

Check your output type/Driver program/Smartform.If every thing looks OK.

IF you are using program SAPFM06P then no problem other wise.

Please Pass NAST values and use the following function to get PO details :

----


  • FORM ENTRY

----


FORM entry USING return_code us_screen.

DATA: lf_retcode TYPE sy-subrc.

CLEAR retcode.

xscreen = us_screen.

PERFORM processing USING us_screen

CHANGING lf_retcode.

IF lf_retcode NE 0.

return_code = 1.

ELSE.

return_code = 0.

ENDIF.

ENDFORM. "ENTRY

  • select print data

PERFORM get_data USING ls_print_data_to_read

CHANGING ls_addr_key

ls_dlv-land

ls_bil_invoice

cf_retcode.

If subroutine Get_data use NAST values

IF NAST-OBJKY+10 NE SPACE.

NAST-OBJKY = NAST-OBJKY+16(10).

ELSE.

NAST-OBJKY = NAST-OBJKY.

ENDIF.

I hope this will help you.

Read only

0 Likes
1,345

Hey murthy,

Ur contact no. ?

Read only

0 Likes
1,345

i am in US (Res): 814-437-1118

Read only

Former Member
0 Likes
1,345

Hi.

You know IMG?

Try the follwings, if you want to output the PO.

T_code ; SPRO

1) Material Mgmt > Purchasing > Messages > Output Control >

Message Type > Define Message Types for Purchase Order

2) Click 'Maintain Message Types for PO'

3) in table control area, Select the your output type.

and then, In tree area, Double Click 'processing routine'

and then, double click your medium line in right table control area.

and then, fill the field 'Program' and 'FORM routine' with your program & form routine.

4) Try ME9F.

The others ask to BC or Module Consultant.

Good Luck.

Regards MSLee.

Read only

0 Likes
1,345

Hi Min,

T/code "NACE" (My earlier e-mail) is same as

SPRO-->1) Material Mgmt > Purchasing > Messages > Output Control >

Message Type > Define Message Types for Purchase Order