05-07-2013 8:12 AM
HELLO ALL,
i have created a screen with all fields under BASIC DATA tab of transaction 'FB60'. using module pool program.
i have also created 2 buttons one TRANSFER other EXIT.
now my question is when i click TRANSFER button the data i entered in screen created by me using(module pool)
should transfer to the corresponding fields of BASIC DATA tab of transaction 'FB60'...
is it possible to do like that...
if yes please suggest me the ways....
thank u all..........
05-07-2013 8:32 AM
Hi,
try like BDC. Use
PERFORM bdc_dynpro
PERFORM bdc_field .
Pass the screen no and value of fields from your module pool to fb60 screen.
Please let me know if it works.
Thanks -
Makarand
05-07-2013 9:23 AM
You can make a recording of the transaction and then create a BDC program that you fill with the data the user has entered. Then you can call this program from your program when the user clicks the button TRANSFER
TC SHDB
05-08-2013 6:51 AM
HI PETER,
as u said first i need transfer data in the fields(entered by user)
needs to be transferred to internal table in the RECORDING program,
so how can i do that....
bye...
05-08-2013 7:02 AM
Hi,
I would suggest to use get parameter id and set parameter id instead.
It is a much simpler approach. And BDC has its own constraints. I dont believe it is apt for your scenario.
You can search SDN for how to use get parameter id and set parameter id.
05-08-2013 7:09 AM
HI
most of the fields do not have PARAMETER ID''s,
do i need to create parameter id's for them...(and some screen fields are structure fields)...
..................
05-08-2013 7:17 AM
Hi,
Have you checked the data elements for all the fields?
You cannot create parameter ids if its a standard data element.
What do you mean by some fields are structure fields.
If you dont have parameter ids, you can also use import export parameters.
05-08-2013 9:22 AM
Dear Vinay,
I am sorry, but I am not going to explain how to use recording for a BDC program. If you don't know how to do that, I can't help you. You must have had some ABAP education before you became a programmer.
05-08-2013 7:23 AM
Dear Vinay.
It'd be better to go with BDC for this issue. Just Record and perform the BDC interanll on action of Transfer button of Module Pool Screen.
Thanks.
Ram
05-08-2013 8:12 AM
HI RAM,
how do i transfer data in screen fields(of module pool created by me)
to INTERNAL TABLE in Recording BDC program..
as u rightly said BDC is the only solution for this problem,
because i tried with SET/GET parameters but failed as
some fields do not have PARAMETER ID's...
thanks.....