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

Specify Message ID on Function Pool

Former Member
0 Likes
4,009

Hello ABAP Experts,

We are trying to implement SAPNote 1824021. As part of this we need to do some manual pre-implement steps. This requires teh creation on a function group IBAN2. Then maintain some code in the generated top include LIBAN2TOP. We need to maintain Message-ID bf00 on the top include.But we are not able to edit that part of the Top Include either through the modification assistanat or an enhancement as it is greyed out/inaccessible. See attached document.

can you advise how we can maintain the Message-ID bf00 as required?

Thank you for your help

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,324

Hi Michael,

I see that Function pool IBAN is using the same Message ID. I would just go to SE80 open function group IBAN and use copy option from the context menu(Right Click). This will create the function group IBAN2 with same top include, then delete whatever is not required.

Delete the current IBAN2 function group before trying the above.

Hope this helps.

Regards,

Karthik Dharnarajan

17 REPLIES 17
Read only

Former Member
0 Likes
3,324

I am not sure i understand you fully, but this message ID just tells the system which one to use if you use the message command without a message ID.

You can always use the message command WITH a message ID like following:

MESSAGE I345(ZMSGID).

So this way, you dont really have to care what the message ID was set to.

Maybe this can be of help.

Read only

0 Likes
3,324

Hi Florian,

If you view the attachment you will see what I mean - the Message-ID piece follwoing the function pool statement (at header level) cannot be accessed for editing.

we need to maintain this at pool level otherwise we must maintain the messageiD in every function module that would be eventually assigned to IBAN2 function group which we do not want to have to do. Plus it would be out-of-sync with what the SAPNote itself recommends.

Thanks for any other suggestions.

Read only

gurunathkumar_dadamu
Active Contributor
0 Likes
3,324

Hi Michale,

i think by using the access key we can do the changes in this case.

Regards,

Gurunath Kumar D

Read only

0 Likes
3,324

No the access key does not help here. We have already registed the FUGR IBAN2 as part of the chnage so that is not the reason that Message-ID is not editable.

Read only

0 Likes
3,324

As per the note, you should not be doing the correction. Use SNOTE to implement the correction instructions(The message change is already included in the corrections).

Read only

0 Likes
3,324

We are only on SAP_ABA SAPKA73105 and so do not have these instructions/functions available on our current SP. Upgrading the SP is not an option right now, therefore we must do the advanced corrections as advised by the SAPNote.

Read only

0 Likes
3,324

Have you tried switching off the modification assistant. Edit-> Modification operations -> Switch off assistant?

Read only

0 Likes
3,324

Uh oh, be careful, as far as i know there is no chance to activate the modifikation assitant again once you deactivated it, unless that was changed..

Read only

0 Likes
3,324

I tried this but the option is greyed out so I cannot Switch Off in any case.

Read only

0 Likes
3,324

Michael,

It is not modifiable. I think you need to register the include again with SAP for the modification. All in all I think if you are not at the minimum support pack SAP says is required the whole program might not work(They do it if it has dependencies with another program this function module calls).

Thanks,

Varun.

Read only

0 Likes
3,324

Varun,

I don't think that registering the inlcude will make any difference. In fact I can get into edit mode on the Include when I select the Change button. It does not prompt me for a Access Key any longer, it has obviosuly got this from time of cretaion of the FUGR IBAN2 and so does not require it again. In edit mode I then have the Insert/Replace/Delete modification options available. If I click on Enhancement Operations -> Show Impliciti Enhancement Options -> it will highlight after the *INCLUDE LIBAN2D... line as shown in my attachment. But the Message-ID follwoing the FUNCTION-POOL IBAN2 statement at header level cannot be altered.

So using either the Modification Assistant or Enhancement options does not give me any ability to alter the Message-ID at all. And I need to be able to do that in order to implement the instructions of the SAPNote.

I will try create a message with SAP to see if they can advise what can be done.

Thanks

Michael

Read only

0 Likes
3,324

Have you tried replace from the application tool bar to change it? If not that is the only way you can edit without switching off the modification assistant. place your cursor on the FUNCTION-POOL and click on the Replace button on the applciation tool bar.

Read only

0 Likes
3,324

Yes this might alos be an option. It will insert some REPLACE statements in comments and comment out the existing FUNCTION-POOL statement and enter another FUNCTION-POOL statement that is editable. After that I can include teh Message-ID.

So I may go with this option (altough it looks a bit confusing/not clean) or the COPY option from Karthik. Thanks for the suggestions, both good.

Read only

Former Member
0 Likes
3,325

Hi Michael,

I see that Function pool IBAN is using the same Message ID. I would just go to SE80 open function group IBAN and use copy option from the context menu(Right Click). This will create the function group IBAN2 with same top include, then delete whatever is not required.

Delete the current IBAN2 function group before trying the above.

Hope this helps.

Regards,

Karthik Dharnarajan

Read only

0 Likes
3,324

Hi Karthik,

Yes this is helpful. I was able to copy IBAN to IBAN2. While doing this, did not copy any of the many function modules existing under IBAN. Then once it was copied I deleted an INCLUDE that was copied over but not required.

Now I see some DATA statements that I don't need in IBAN2. I'd like to remove them. But again they are protected when in Change mode.

See attached (if I am allowed attach)

Would you have any suggestion to remove those?

Thanks again

Michael

Read only

0 Likes
3,324

Sorry I tried but could not attach the document. basically the unecessary DATA statements copied from IBAN are: the structure gt_converse, g_intca, g_land, g_bank_account, fname.

Read only

0 Likes
3,324

Hi Michael,

Since we do not have option to remove them, I would just ignore the statements if it is not going to impact your function module code. Also it would not affect anything else as you would not be assigning any values to those data objects.

Regards,

Karthik Dharmarajan