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

Program to Re-print material document from NAST

Former Member
0 Likes
3,745

Hi,

My user has this particular problem of getting his labels stuck in the printers while printing them from RF Device.

The requirement is to reprint the label taking data from NAST table for the user, only considering the last entry from it. I tried using the Program "RSNAST00" but it will not process entries with Time/Date = '4'(The documentation also states that it should atleast have been '1' at some point in time for this program to work).

Can someone suggest me some other way to reprint the NAST data? Its a Application Type 'ME' and the objky entry generally has MSEG-MBLNR, MSEG-MJAHR and MSEG-ZEILE concatenated and the output is taken through standard Tcode MB90(But my requirement is not use this and directly print based on NAST entry through the RF device itself). Just mentioning this in case it helps.

Thanks for your time and help.

Regards,

Vadid

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,972

Hi Vadid,


Please use  FM 'WFMC_MESSAGE_SINGLE' for re-printing  NEST  based output from RF .

you can call in your  RF button event and pass your NAST  table entry in the below FM.

 
CALL FUNCTION 'WFMC_MESSAGE_SINGLE'

          EXPORTING
                 PI_NAST  = nast

          IMPORTING

            PE_RCODE = retcode.

if sy-subrc is 0.

commit work.

endif.

Regards,

Prasenjit

Hi,

My user has this particular problem of getting his labels stuck in the printers while printing them from RF Device.

The requirement is to reprint the label taking data from NAST table for the user, only considering the last entry from it. I tried using the Program "RSNAST00" but it will not process entries with Time/Date = '4'(The documentation also states that it should atleast have been '1' at some point in time for this program to work).

Can someone suggest me some other way to reprint the NAST data? Its a Application Type 'ME' and the objky entry generally has MSEG-MBLNR, MSEG-MJAHR and MSEG-ZEILE concatenated and the output is taken through standard Tcode MB90(But my requirement is not use this and directly print based on NAST entry through the RF device itself). Just mentioning this in case it helps.

Thanks for your time and help.

Regards,

Vadid

2 REPLIES 2
Read only

Former Member
0 Likes
1,973

Hi Vadid,


Please use  FM 'WFMC_MESSAGE_SINGLE' for re-printing  NEST  based output from RF .

you can call in your  RF button event and pass your NAST  table entry in the below FM.

 
CALL FUNCTION 'WFMC_MESSAGE_SINGLE'

          EXPORTING
                 PI_NAST  = nast

          IMPORTING

            PE_RCODE = retcode.

if sy-subrc is 0.

commit work.

endif.

Regards,

Prasenjit

Read only

0 Likes
1,972

Thanks Prasenjit,

I tried running the FM independently, and used the FM 'BAPI_TRANSACTION_COMMIT' to commit work. It created a new entry in the NAST table with Status as '1'(Successful).

I hope this will do that trick as currently the printer is not at my side hence cannot confirm the print, but from the table entry i feel everything should be in place, hence marking your reply as the correct one.

Thanks and Regards,

Vadid Valiulla