2009 May 25 10:08 AM
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
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
2009 May 25 10:10 AM
2009 May 25 10:14 AM
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
2009 May 25 10:27 AM
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
2009 May 25 11:02 AM
call transaction skip first screen. and give the values to the parameter id
2009 May 25 11:30 AM
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
2009 May 25 11:45 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |