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

regarding module pool

Former Member
0 Likes
889

hai,

how to change the status using module pool program.if anybody knows means pls tell me the solution.

with regards,

R.Dhineshraj.

1 ACCEPTED SOLUTION
Read only

bpawanchand
Active Contributor
9 REPLIES 9
Read only

bpawanchand
Active Contributor
Read only

0 Likes
857

hai,

i am not telling about that pf status.i am telling about status that means if our record is valid then it wil change to green,if it s failed then it turns to red if it is in process then it wil remains on yellow for that how to change the status.if u know means pls tell.thanks for ur reply.

with regards,

R.Dhineshraj.

Read only

0 Likes
857

For this you can use the option 'Traffic lights'

For further info go through this link:

https://forums.sdn.sap.com/click.jspa?searchID=14639817&messageID=5337021

Regards,

Shailaja

Read only

Former Member
0 Likes
857

in PBO of the screen,

use SET PF-STATUS '(status name)' and double click on the status name and click on activate.

Regards

Kannaiah.

Read only

Former Member
0 Likes
857

Hi,

In PBI, you have module called

PROCESS BEFORE OUTPUT.

MODULE STATUS_XXXX.

Double click on it and there write SET PF-STATUS 'XXX'.

Again double click on PF-STATUS. I think you know how to do it from there.

Thanks,

Phani Diwakar.

Read only

Former Member
Read only

Former Member
0 Likes
857

Hi Dhinesh.

I would like to suggest a few references,

[SDN - Reference for Changing status of Module pool program|;

[SDN - Reference for Changing status in Module Pool Program|;

Hope that's usefull.

Good Luck & Regards.

Harsh Dave

Read only

Former Member
0 Likes
857

Hi,

SAP provides a large number of BAPIs. If you want to implement your own BAPIs, you have to use your own namespace.

Procedure

You have the following options:

u2022 You can develop your own BAPI in the customer namespace.

u2022 You can modify a BAPI delivered in the standard system.

1. Copy and modify the function module belonging to the original BAPI.

2. In the Business Object Repository create a subobject type for your BAPI object type in the customer namespace (Tools u2192 Business Framework u2192 BAPI Development u2192 Business Object Builder).

When you create the subobject type the methods of the business object inherit the subtype.

3. Set the status of the object type to Implemented (Edit u2192 Change release status u2192 Object type).

4. You can change and delete the methods of the subtype or enhance them with your own methods.

Notes about Asynchronous BAPIs

If you want to implement an asynchronous ALE business process, you have to Define a BAPI-ALE Interface from the BAPI.

If you implement a BAPI as an asynchronous interface, in addition to following the standard programming BAPI guidelines, keep in mind the following:

u2022 The BAPI must not issue a COMMIT WORK command.

u2022 The method's return parameter must use the reference structure BAPIRET2.

u2022 All BAPI export parameters with the exception of the return parameter are ignored and are not included in the IDoc that is generated.

u2022 Status records log the BAPI return parameter values.

After the function module which converts the IDoc into the corresponding BAPI in the receiving system has been called, status records are written for the IDoc in which messages sent in the return parameter are logged.

If, in at least one of the entries of return parameter, the field Type in the return parameter is filled with A (abort) or E (error), this means:

u2022 Type A:

Status 51 (error, application document not posted) is written for all status records, after a ROLLBACK WORK has been executed.

Type E:

Status 51 (error, application document not posted) is written for all status records and a ROLLBACK WORK is executed.

Otherwise status 53 (application document posted) is written and a COMMIT WORK executed.

cheers,

vasavi.v

Read only

Former Member
0 Likes
857

Hi,

You can set status for particular screen in the following way:

1: Go at the PBO module of the screen by double click at the screen no suppose 100. and write any name for the status within single quotes here this name is S100.

module status_0100 output.

set pf-status 'S100'.

set titlebar 'SPA'

endmodule. " STATUS_0100 OUTPUT

after clicking on this u will get an screen opened there u can define menu bar icon application bar etc... according to ur need..

whatever u define there u need to activate and then u need to do coding in the PAI event using OK_code like sy-ucomm.

Here is the small example:---

module exit input.

case ok_code.

when 'EXIT' or 'CANC' or 'BACK'.

clear ok_code.

leave to screen 0.

endcase.

endmodule. " EXIT INPUT

ya one more thing dont forget to define ok_code in element list of that screen...

I hope u will get some help..

Thanks & Regards

Ashu Singh