cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid the processing of a message

frank_bork
Participant
0 Kudos

Hi guys,

I have a message(send email) in one of my activities which I will process only for a special legal unit.

Is it possible to avoid the processing of the message for all other legal units?

In SD we have requirements which are needs to be fulfilled to process a message.

Do we have something similar in GTS?

Thanks in advance for your help.

Kind regards

Frank

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member215181
Active Contributor
0 Kudos

Hi Frank,

In GTS you determine messages based on criteria - almost exactly the same as configuring an Access Sequence in SD Output.  You'll find the configuration under SAP Customs Management > General Settings > Procedures for Defaulting Data.  And the "Condition Records" are in the Master Data area.

If you have any problems, come back with specific questions.

Regards,
Dave

frank_bork
Participant
0 Kudos

Hi Dave,

thanks for the quick response.

That is what I already did but without success.

The message is processed although the system did not find an entry in the condition records.

In the meantime I found the following statement in the program. Here the program found the email address in the master data of the responsible person.

I am looking for a solution to show/find the message only if the requirement is fulfilled.

Kind regards

Frank

/SAPSLL/LCUHD_CUS_MAILF01

*-- Mailadresse des zustaendigen Mitarbeiters bestimmen

    call function '/SAPSLL/MAIL_ADDRESS_GET'

      exporting

        iv_parno  = ls_corpar-parno

        iv_adrnr  = ls_corpar-adrnr

      importing

        ev_e_mail = lv_e_mail.

mouaz_benredjeb
Contributor
0 Kudos

Hi Frank,

As I understand your issue, you all ways have the message "send email" in the Communication tab and you wish to process it only for certain Legal Units...

Instead of having all ways this message in the communication tab, you should rather play around with the defaulting data in order to have the message with the email only under some circumstances, i.e. the message "send mail" will appear in the communication tab only if dealing with some Legal Units...

By doing so, you can solve your issue with only customizing and no ABAP coding...

Hope this helps.

Regards.

Mouaz BEN REDJEB

frank_bork
Participant
0 Kudos

Hi Mouaz,

thanks.

I played already with the default data. But my message is in the communication tab since the first activity (with a cross in the status field) and will be processed automatically in the activity where the message is customized. I think the problem is the coding I sent in my previous mail.

Kind regards

Frank

former_member215181
Active Contributor
0 Kudos

Hi Frank,

Take a look in the Determination Log (icon in the "Communications" tab), and see if you can work out WHY the message has been determined.  Perhaps you can then correct the configuration?

Regards,
Dave

frank_bork
Participant
0 Kudos

Hi Dave,

the log giving me the below information.

The line with my email address is message id /SAPSLL/CUS_CDOC no. 045

045 E-mail created for recipient &1

This message will be processed after the function module

'/SAPSLL/MAIL_ADDRESS_GET' and this function will be processed if no email address will be found in the condition records (function module '/SAPSLL/DATA_PROPOSAL_MAIL').

I think I have to look for a solution in the BadI´s. Hope I will find a workable solution otherwise I will live with a dummy email address as a workaround.

Thank you all for your help.

KR

Frank

Date: 03.04.2012      Time: 15:10:05

Processing /SAPSLL/MAIL_CD_CUS_CU_EX_ESAD Is Started

Default data Mail Dispatch: procedure ZCMFI (E-Mail - Export - Finland)

Active Rule with target field $MAIL_ADDR (Mail Address as Text)

No default value was determined

Active Rule with target field $MAIL_USER (Mail Address by User)

No default value was determined

Active Rule with target field $MAIL_PFCT (Mail Address by Partner Function)

No default value was determined

Active Rule with target field $MAIL_LIST (Distribution List)

No default value was determined

E-mail created for recipient frank.bork@bssgmbh.de

Mail request was created

Action successfully completed

mouaz_benredjeb
Contributor
0 Kudos

Frank,

As said by Dave, you should first understand why the message is determined, no matter if is it is in the first or last activity... if it is in the communication tab, then there is a reason...

I had a look into the system, unfortunately there is no option to download the determination log... but it seems that with the new SCN we can share images in the posts... so you can share the determination log by this way...

If you didn't find the message in the determination log, then other option is that the message is added by BadI /SAPSLL/PRN_DET...

P.S In our system, we have about 20 field combinations. If you have the same number of field combinations then it makes it a little bit more complicated to read but not impossible...

mouaz_benredjeb
Contributor
0 Kudos

Frank,

This is the determination log of the email addresses.

There should be another determination log of the messages (usually identified as $MESSAGES).