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

Check status bar message type

Former Member
0 Likes
1,363

Hi All,

Are there any function module or method that could use to check what message type (I,S etc) are prompting on the status bar?

Thanks.

Hi All,

Are there any function module or method that could use to check what message type (I,S etc) are prompting on the status bar?

Thanks.

8 REPLIES 8
Read only

Former Member
0 Likes
1,140

hi,

i didnt got wat exactly u want to say , could u define it precisely for me so i can help u

Moderator message: please do not use SMS speak.

Edited by: Thomas Zloch on Jun 3, 2011 11:17 AM

Read only

0 Likes
1,140

Hi Dakshaini,

I am customizing PAI PBO on a standard program to fetch data to my customize table.

The problem is, the standard program will only check the input value after my customize PBO & PAI.

Which mean, when user click "SAVE" button. The standard program will run my customize PBO & PAI and output the data to my customize table.

After that, only the standard program will check the value of each field.

Therefore, i want to check is there any error message prompt out on the status bar before i save my data to my customize table.

Is there any solution for tat?

Thanks.

Read only

0 Likes
1,140

Anyone? Please help . <removed by moderator>.

The standard program is LTI Exercising that will grab infotype 762 and 761.

Edited by: Thomas Zloch on Jun 3, 2011 11:17 AM

Read only

0 Likes
1,140

Hi,

If i understand you requirement correctly, you have made some customization to a standard program's PBO/PAI. This customization updates some Z Tables. Now the flow is such that your customization executes before Standard program has completed its validations and there is a possibility that an error might be thrown later in the program validation and in such cases you do not want your changes to be committed to the Z tables.

If my understanding is correct, i can think of below solutions.

1) Since you are customizing the standard code, look for a EXIT/BADI which get triggered on SAVE and add your code here.

If you have tried this already and didn't find a suitable enhancement, then try with the below solution.

Create an FM with the processing type as an "Update Module" (attribute tab of the FM in SE37), and pass the data that needs updated in the Z table to this FM, inside this FM you can have your custom validations and code to update the Z table.

Now call this FM "CALL "FM" IN UPDATE TASK" in the PBO/PAI of your customization.

With this what you will achieve is that, the update modules will be called only if the original transaction was committed successfully.

Regards,

Chen

Edited by: Chen K V on Jun 3, 2011 12:59 PM

Read only

0 Likes
1,140

Helpful Reply, thanks. Will giv a try

thanks a lots.

Read only

Former Member
0 Likes
1,140

Hi,

probably if there is any error the standard program wont jump to ur customize PBO / PAI.

In addition, it is better that u save ur data after all the standard validation are done, not before.

Regards

Read only

Former Member
0 Likes
1,140

you can find in idoc d.b table there you can message type and other types of fields.

thanking you

Read only

Former Member
0 Likes
1,140

Hi,

i found the answer myself. Search for badi and implement the code in it.

Thanks for all the reply.