cancel
Showing results for 
Search instead for 
Did you mean: 

SES printout after acceptance

0 Kudos

Dear expert,

I have configured to make the SES only can be printed once it is

accepted. Below is the changes done:

1. New Condition table 900 created with field company code and

acceptance. The table generated.

2. Use existing access sequence 0001 and add access number 30 with new

condition table 900 and set it as Exclusive. For field Acceptance, we

set KZABN = A.

3. The output type to be used is NEU which already assigned to access

sequence 0001.

4. Then, we check the flags which assigned to message determination

schema in Assign Schema to Service Entry Sheet.

5. Finally, we set the specific company code with acceptance = A in

Output Condition Record (t-code MN15).

However it is still not workable. Please help.

Regards,

SITI

Accepted Solutions (0)

Answers (2)

Answers (2)

BijayKumarBarik
Active Contributor
0 Kudos

Hi,

Try without creating new table 900.

You can use Access sequence 0001 (Service entry sheet) with standard Service entry sheet Output Type( Message type):NEU(Entry of Srvc Prfr ) and maintain message condition record in t.code:MN13 and save.

Now create Service entry sheet WRT your service order and find the difference to print of Service entry sheet without releasing Service entry sheet and with releasing Service entry sheet.

Regards,

Biju K

0 Kudos

Hi Bijay,

The existing condition table does not have the acceptance field. Therefore I created a new table to include the acceptance field and company code since this condition will only be applied for certain company codes. The condition records maintained in MN13. It works but only for automatic SES output type determination. The output type message will only appear in SES message once it has been accepted. But user still can print the SES without acceptance if they input the output type manually in SES message.

RobynCouch
Contributor
0 Kudos

Are there other accesses in the 0001 sequence?  I assume so because you used access number 30.  The exclusive flag will only work if your access is matched which won't happen until the SES is accepted until that point other accesses could be matched.

I implemented the same functionality recently but I had an ABAP developer create a requirement routine 901 for me which checked the acceptance flag.  Then I assigned this to the existing access sequence records

   FORM KOBED_901.
*-----------------------------------------------------------------------
* This output routine is designed to prevent Service Entry Sheets (ML81N)
* from being output if they have not been accepted.
*-----------------------------------------------------------------------
"Output is only allowed if Service Entry Sheet has been accepted.
"During determination of the NAST record the value is 'A'
"After saving, the value is 'X'
"Both are OK for output of a service entry sheet.

  if komkbes-kzabn = 'A' or
     komkbes-kzabn = 'X'.
    sy-subrc = 0.
  else.
    sy-subrc = 4.
  endif.

ENDFORM.

0 Kudos

Hi Robyn,

Does your solution works if user enter the output type manually in SES?

My setting works (without Abap involvement) but only for automatic SES output type determination. Means if the SES not yet accepted, the output type will not appear in SES message. The output type will only appear in SES message once it has been accepted. However, user still can print the SES without acceptance if they input the output type manually in SES message.