Application Development 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: 

Call Transaction

Former Member
0 Kudos
93

Hi every body,

i stuck up with one problem,i.e..

i have call one transaction for that i am using statement

Call transaction 'VA01'.

Now thing is that,when i call this transaction from my program i am able to see the sales order scree.

if i am giving ORDER TYPE is OR > then i have to click enter > again i want to go back my program

there i have to use this order type( means in my programm).

Please help me

6 REPLIES 6

Former Member
0 Kudos
54

get the value from parameter id AAT

Former Member
0 Kudos
54

HI,

When ever you want to do some thing with the order type, have these order types in TVARV table.

if the user is tryiing to post a document of type OR, then do something in your program and call the bdc

i mean call transaction va01 using bdcdata update 'S' mode 'N' messages msgcoll.

if you are trying to do the BDC, then we need to follow this.

If you want only after entering order type in VA01, then you have to search for the USer exit or Enchancement spots.......like this.

Regards,

Venkatesh

faisal_altaf2
Active Contributor
0 Kudos
54

Hi, Sekhar,

Please Test the following sample code and let me know if any issue,

DATA: it_bdcdata TYPE TABLE OF bdcdata,
      wa_it_bdcdata LIKE LINE OF it_bdcdata,
      auart TYPE auart. " Sales Document Type

auart = 'AA'. " Give Order Type Here

DATA opt TYPE ctu_params.

CLEAR wa_it_bdcdata.
wa_it_bdcdata-program  = 'SAPMV45A'.
wa_it_bdcdata-dynpro   = '0101'.
wa_it_bdcdata-dynbegin = 'X'.
APPEND wa_it_bdcdata TO it_bdcdata.

CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'BDC_CURSOR'.
wa_it_bdcdata-fval = 'VBAK-AUART'.
APPEND wa_it_bdcdata TO it_bdcdata.

CLEAR wa_it_bdcdata.
wa_it_bdcdata-fnam = 'VBAK-AUART'.
wa_it_bdcdata-fval = auart.
APPEND wa_it_bdcdata TO it_bdcdata.

opt-dismode = 'E'.

CALL TRANSACTION 'VA01' USING it_bdcdata OPTIONS FROM opt.

Best Regards,

Faisal

Madhurivs23
Participant
0 Kudos
54

call transaction skip first screen. and give the values to the parameter id

Former Member
0 Kudos
54

Hi,

Plz refer this coding for sales order

FORM user_commands USING syst_ucomm LIKE sy-ucomm

selfield TYPE slis_selfield.

CASE:syst_ucomm.

WHEN '&IC1'.

IF selfield-fieldname = 'ORDER_DOC'. "insert field name here

READ TABLE it_final INTO wa_final INDEX selfield-tabindex.

IF sy-subrc EQ 0.

SET PARAMETER ID 'AUN' FIELD wa_final-order_doc.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

ENDIF.

ENDIF.

ENDCASE.

And in CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

I_CALLBACK_USER_COMMAND = 'USER_COMMANDS'

Regards,

Archana

Former Member
0 Kudos
54

Hi,

There is convertion routine for field AUART. So please check once if the input is OR then it stores in databse is TA.

By this FM.

CONVERSION_EXIT_AUART_INPUT.

Hope this helps you.

Thank you