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

How to trigger transaction ??

Former Member
0 Likes
1,822

Hi,

I have a scenario please help me how this can be acheived..

I create goods receipt for Order using MB31, when i click save button i have to trigger / open the KGI2 and KO88 transactions.

Kindly let me know how this can be done...

Regards,

Vimal

Hi,

I have a scenario please help me how this can be acheived..

I create goods receipt for Order using MB31, when i click save button i have to trigger / open the KGI2 and KO88 transactions.

Kindly let me know how this can be done...

Regards,

Vimal

9 REPLIES 9
Read only

Former Member
0 Likes
1,589

hiiii

use code like given below

CASE sy-ucomm.

  WHEN 'SAVE'.

        CALL TRANSACTION 'XD03' AND SKIP FIRST SCREEN.

i hope it solves your problem

regards

twinkal

Read only

0 Likes
1,589

Hi,

Thanks for your reply...

My scenario is in standard transation MB31 when i press save it will give me material document number then it should trigger the other standard transactions...is it possible ???

or will user-exit or BADI can do this ?

Kindly let me know on this..

Regards,

Vimal

Read only

0 Likes
1,589

Hi Vimal,

Use the user exit of that transaction and put a abap statement...

CALL TRANSACTION <tcode> or LEAVE TO TRANSACTION <tcode>.

The below are the user exits of MB31..

MBCF0002  Customer function exit: Segment text in material doc. item
MBCF0005  Material document item for goods receipt/issue slip
MBCF0006  Customer function for WBS element
MBCF0007  Customer function exit: Updating a reservation
MBCF0009  Filling the storage location field
MBCF0010  Customer exit: Create reservation 
BAPI_RESERVATION_CREATE1
MBCF0011  Read from RESB and RKPF for print list in  MB26
MB_CF001  Customer Function Exit in the Case of Updating a Mat. Doc.

Use one of the above exit...

Hope this would solve your issue.

Regards

Narin

Read only

Former Member
0 Likes
1,589

Try to find a badi or user exit that is triggered after save and from it call the transactions..using call transaction statement...if u want to open the transactions in separate sessions then try the FM ABAP4_CALL_TRANSACTION with new task addition.

Regards,

joy.

Read only

Former Member
0 Likes
1,589

Hello Vimal,

Please execute the below function exit in the enhancement MBCF0011.

EXIT_PP_PICK_LIST_001

Regards

Indu.

Read only

former_member217544
Active Contributor
0 Likes
1,589

Hi,

As teh requirement is enhancement to the standard functionality, we have to go for user-exits or badis to implement this.

There are several BAdis and user-exits available for this:

8 user-exits

Enhancement/ Business Add-in Description

Enhancement

MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.

MBCF0011 Read from RESB and RKPF for print list in MB26

MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1

MBCF0009 Filling the storage location field

MBCF0007 Customer function exit: Updating a reservation

MBCF0006 Customer function for WBS element

MBCF0005 Material document item for goods receipt/issue slip

MBCF0002 Customer function exit: Segment text in material doc. item

29 BAdis:

Business Add-in

MB_DOCUMENT_UPDATE BADI when updating material document: MSEG and MKPF

MB_DOC_BADI_INTERNAL BAdIs During Creation of a Material Document (SAP Internal)

MB_ME_CSGMT_BADI_SAP BAdI: Consignment Processing - Stock Transfer

MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens

MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data

MB_PHYSINV_INTERNAL Connection: Core Inventory and Retail AddOn

MB_QUAN_CHECK_BADI BAdI: Item Data at Time of Quantity Check

MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data

MB_RESERVATION_SCR Screen BAdI for Retrofit DFPS

MB_RESERVATION_UPCHD BAdI for Creation and Changing of Manual Reservations

MB_RES_BAPI_CHANGE BAdI: Execution of Changes to Reservation Fields

MB_RES_BAPI_CREATE1 BAdI: Adoption of Customer's Own Fields as Reserv. Fields

MB_RES_BAPI_DETAIL1 BAdI: Display of Customer's Own Fields in Reservations

MB_STOR_LOC_BADI_GTS BADI to Check and Change Storage Location (GTS Fct. Only)

MB_DOCUMENT_BADI_SAP BADI for Creation and Changing of a Material Document

ARC_MM_EBAN_CHECK BAdI: Enhancement of Archivability Check (MM_EBAN)

ARC_MM_EBAN_PRECHECK BAdI: Enhancement of Archivability Check (MM_EBAN)

ARC_MM_EBAN_WRITE BAdI: Enhancement of Scope of Archiving (MM_EBAN)

ARC_MM_EINA_CHECK BAdI: Enhancement of Archivability Check (MM_EINA)

ARC_MM_EINA_WRITE BAdI: Enhancement of Scope of Archiving (MM_EINA)

ARC_MM_INVBEL_CHECK BAdI: Enhancement of Archivability Check (MM_INVBEL)

ARC_MM_INVBEL_WRITE BAdI: Enhancement of Scope of Archiving (MM_INVBEL)

ARC_MM_MATBEL_CHECK Prüfung ADD-ON-spezifischer Kriterien für MM_MATBEL

ARC_MM_MATBEL_WRITE Check Add-On-Specific Data for MM_MATBEL

MB_CHECK_LINE_BADI BAdI: Check Line Before Copying to the Blocking Tables

MB_CIN_LMBMBU04 posting of gr

MB_CIN_MM07MFB7 BAdI for India Version exit in include MM07MFB7

MB_CIN_MM07MFB7_QTY Proposal of quantity from Excise invoice in GR

MB_DOCUMENT_BADI BAdIs During Creation of a Material Document

Hope this will help.

Regards,

Swarna Munukoti

Read only

Former Member
0 Likes
1,589

Hi Vimal,

Use the Statement


SET PARAMETER ID 'XXX'....
 CALL TRANSACTION VA03 .

IF ANY INPUT SCREEN VALUE IS REQUIRED THEN YOU SET THE PARAMETER ID AND THEN CALL THE CALL TRANSACTION STATEMENT.

&*******Reward point if helfpu**********&

Read only

Former Member
0 Likes
1,589

you do the as below...you can call transaction multiple times with required paramets..

dont forget to set paramets as required...

please follw the procesure..

create FM. so that u can call in new sesiion...easily,....

ZFM_CALL_TCODE_IN_NEW_WINDOW

FUNCTION ZFM_CALL_TCODE_IN_NEW_WINDOW.

*"----


""Local Interface:

*" IMPORTING

*" VALUE(TCODE) TYPE SY-TCODE

*" VALUE(SONO) TYPE VBELN

*"----


SET PARAMETER ID 'AUN' FIELD SONO.

CALL TRANSACTION tcode AND SKIP FIRST SCREEN.

ENDFUNCTION.

you Can call the Function Module to Open the Transaction in New Session

You have to use the following code segment to call that Function Module , and here Sales Document 9000000012 will open for Display in a New Session(Window).

/* E_tcode = 'VA03'.

E_SONO = '9000000012'

CALL FUNCTION 'ZFM_CALL_TCODE_IN_NEW_WINDOW' STARTING NEW TASK 'TEST'

DESTINATION 'NONE'

EXPORTING

tcode = E_tcode

sono = E_SONO. */

Read only

Former Member
0 Likes
1,589