Application Development and Automation 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: 
Read only

sap script problem

sachin_jadhav8
Participant
0 Likes
444

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

3 REPLIES 3
Read only

Former Member
0 Likes
404

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.

Read only

Former Member
0 Likes
404

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.

Read only

Former Member
0 Likes
404

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.