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

BAPI giving POP UP message

former_member288834
Participant
0 Likes
2,794

Hi All,

I am using BAPI BAPI_SHIPMENT_CHANGE to change status of shipment. But it is giving pop up when executing. I do not need pop up as I am using the BAPI in RF programs.


I have tried with DESTINATION 'NONE', and Exceptions but not worked.

Also tried executing Background Task, Pop Up not displayed but no change in shipment. It is a custom program. Please help ASAP.


CALL FUNCTION 'BAPI_SHIPMENT_CHANGE' IN BACKGROUND TASK DESTINATION 'NONE'

EXPORTING

headerdata = ls_headerdata

headerdataaction = ls_headerdataaction

TABLES return = lt_return

EXCEPTIONS

OTHERS = 99.


Thanks

Guru Prasad.

Hi All,

I am using BAPI BAPI_SHIPMENT_CHANGE to change status of shipment. But it is giving pop up when executing. I do not need pop up as I am using the BAPI in RF programs.


I have tried with DESTINATION 'NONE', and Exceptions but not worked.

Also tried executing Background Task, Pop Up not displayed but no change in shipment. It is a custom program. Please help ASAP.


CALL FUNCTION 'BAPI_SHIPMENT_CHANGE' IN BACKGROUND TASK DESTINATION 'NONE'

EXPORTING

headerdata = ls_headerdata

headerdataaction = ls_headerdataaction

TABLES return = lt_return

EXCEPTIONS

OTHERS = 99.


Thanks

Guru Prasad.

5 REPLIES 5
Read only

NTeunckens
Active Contributor
0 Likes
1,731

This BAPI is NOT RELEASED to Customers, so you will have to do the necessary debugging / fixes on you own (no SAP Support).

Some hints would be :

  • Have you tried using only "DESTINATION 'NONE' " without the BACKGROUND TASK?
  • Use of FM "DIALOG_SET_NO_DIALOG" before Execution?
  • Create a Z-Wrapper around the BAPI and handle the Exceptions / Errors / Popups in an appropriate way?

Read only

DoanManhQuynh
Active Contributor
0 Likes
1,731

what pop up it is? i saw there is a CTRL_NO_RECONFIRM field of HEADERDATAACTION parameter, maybe you could try to set it = X.

Read only

patrick_sojka
Explorer
0 Likes
1,731

Hello Guru,

the EXCEPTIONS addition "error_message" could stop the Pop Up (conditions abapcall_function_parameter).

Regards Patrick

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,731
  • What's your version,
  • did you or your basis already look for OSS notes?
  • Did you read the "caution" at start of unreleased FM code
Read only

former_member288834
Participant
0 Likes
1,731

Hi All,

For now I have created new FM to complete the shipment, still trying to resolve the Pop Up issue, thank you all for your messages.

Regards

Guru Prasad