07-22-2009 12:36 PM
hai experts ,
..i have a done a BDC and it is working fine ..but when when executing it goes to a screen asking for seesion or call transaction ..where i have given all the details inside the program itself.
how can i eliminate the process...i have to make it default and when i execute the program all should happen in the background ..
\whet shall i do for it...
07-22-2009 12:51 PM
hi MM,
Just copy those PERFORMS for which you are filling the data on the screen...
Remove the Include bdcrecx1...
and copy the BDC_DYNPRO and BDC_FIELD Froms into your code.....
try..
thnx
Rahul
Edited by: Rahul Keshav on Jul 22, 2009 5:21 PM
07-22-2009 12:51 PM
hi MM,
Just copy those PERFORMS for which you are filling the data on the screen...
Remove the Include bdcrecx1...
and copy the BDC_DYNPRO and BDC_FIELD Froms into your code.....
try..
thnx
Rahul
Edited by: Rahul Keshav on Jul 22, 2009 5:21 PM
07-22-2009 1:17 PM
07-22-2009 1:20 PM
Use this one..
&----
*& Form bdc_transaction
&----
text
----
-->P_0829 text
----
FORM bdc_transaction USING p_tcode .
DATA wg_ctu_params TYPE ctu_params.
CLEAR: wg_ctu_params.
wg_ctu_params-defsize = 'X'.
wg_ctu_params-dismode = 'N'.
wg_ctu_params-updmode = 'S'.
CALL TRANSACTION p_tcode USING bdcdata OPTIONS FROM wg_ctu_params.
REFRESH : bdcdata.
CLEAR : bdcdata.
ENDFORM. " bdc_transaction
thnx
Rahul
07-22-2009 1:34 PM
cool ma .thank u it is working ..
now i need to have a button and if i click that button the bdc code should work ...
so i need to got to se51 design a screen and in PAI if i copy the bdc program it will work ??
07-22-2009 1:34 PM
07-22-2009 1:43 PM
i think it will work...
or you can do like this....
Add a button on the screen....
and in report write ...
IF sy-ucomm = '&ACTION'.
perform BDC.
endif.
thnx
Rahul
07-22-2009 2:06 PM