‎2009 Nov 06 11:11 AM
I have script in that I want to select bank number
from DB table LFBK .But I don't want to change driver programme for that
As it is standard Programme .How Can I do this In script? I write subroutine pool
programme But on which relation I select data from lfbk? The script is link to F-58 transaction.
Plz help?
Thanks ,
Sachin
‎2009 Nov 06 11:16 AM
Hi,
One solution i could see is, create a std text in SO10 and call your subroutine pool (PERFORM..USING..CHANGING) from this text. But, you need to have all the required fields before calling the text.
Regards,
Nilesh.
‎2009 Nov 06 11:19 AM
You can easily do this by calling a subroutine from ur script in the external program.U can pass selection critera to extenal program where u will hit DB LFBK to get the bank number.
i.e XYZ vallue is coming inside ur script and u know that u can extract the bank number fron table LFBK using this value XYZ.
You just need to pass this value from script to subroutine defined in external program and there extract bank number. Now pass back bank number to script.
Do let me know if u require any other help.
‎2009 Nov 06 11:22 AM
Hi,
Try this way as you would be knowing the Account Document No from FB58 ..pass this Account Document no to TABLE
' BSEG' and get 'LIFNR' from BSEG. Pass this 'LIFNR' to TABLE 'LFBK' to get the bank 'BANKN' into a variable to display in the sapscript.
Hope this Helps!!
Regards,
Kumar.