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

urgent

Former Member
0 Likes
963

Hi experts,

Is there any existing function module which calls the transaction MB11 without using the statement "Call transaction MB11"?

Thanks

Hi experts,

Is there any existing function module which calls the transaction MB11 without using the statement "Call transaction MB11"?

Thanks

6 REPLIES 6
Read only

Former Member
0 Likes
897
call function 'ABAP4_CALL_TRANSACTION' 
    exporting
      tcode                         = object_name
*     SKIP_SCREEN                   = ' '
*     MODE_VAL                      = 'A'
*     UPDATE_VAL                    = 'A'
*   IMPORTING
*     SUBRC                         =
    tables
*     USING_TAB                     =
      spagpa_tab                    = l_spagpa_tab
*     MESS_TAB                      =
*   EXCEPTIONS
*     CALL_TRANSACTION_DENIED       = 1
*     TCODE_INVALID                 = 2
*     OTHERS                        = 3
            .
  if sy-subrc <> 0.
 message id sy-msgid type sy-msgty number sy-msgno
         with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  endif.
Read only

Former Member
0 Likes
897

Hi,

you can use BAPI which will in turn perform same functionality of

call transaction 'MB11'

use bapi BAPI_GOODSMVT_CREATE

REgards

Amole

Read only

Former Member
0 Likes
897

Hi,

You can call the FM ABAP4_LEAVE_TO_TRANSACTION.

Where you need to give the Tcode in Import paramters.

BR,

Ravi

Read only

Former Member
0 Likes
897

what is your requirement.

Can you explain in detail....

Regards

Vijay

Read only

0 Likes
897

Hi vijay,

summery: A user exit is needed on the delivery that rebrands sub items into the header item and the header item will then be Post Goods Issued. This needs only to be done for materials with ‘Item Category’ equal ‘ZTNB’.

reqirements: The SAP sales BOM functionality needs to generate movement types 309/310 rebrands for the component materials and 601 on the header or additized material. We want 309 Credit entries on the base product instead of additized product. This is needed to create the correct financial posting as well as stock movements.that time mode of transport is pick up.

plz expain what the relation between BOM/Delivery...that user exit is BADI_LE_SHP_GOODSMOVEMENT.Explain me with the transaction codes.wht transction codes we are going to use inthis reqirement functionally.so futher i will ubderstand...and clearly explain the realtion between BOM Rebrands and delivery

MB11 which can be called via the ‘Call Transaction’ statement. It shows all data needed to process this transaction. It is not necessarily wanted that the user exit BADI - LE_SHP_GOODSMOVEMENT calls this transaction. It is preferred to use a function module that provides the same functionality.

regards

Read only

Former Member
0 Likes
897

Hi Bhanu,

You can try this..

LEAVE TO TRANSACTION 'MB11'.

Regards

Vijay