cancel
Showing results for 
Search instead for 
Did you mean: 

SAP script - Fetch data from TVGRT

Former Member
0 Kudos

Hello All,

I have a specific requirement, in which I am working on a Script for order confirmation.

I need to fetch the sales group description from table TVGRT .. But not using print program,, only within the Sapscript.

Can anybody explain me the process?

Many thanks in advance!!!

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

It is, possible to call a PERFORM routine in a script in order to do some SE38 coding.

I have already posted it some time ago, you can refer it,

[]

[;

Hope that wud be more than enough.

Let me know if you have any doubt.

Edited by: Lokesh Tarey on Jul 29, 2010 6:31 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Create a subroutine pool program and call the same in script. define a variable in script using command DEFINE for text of sales group description . Please find the below peace of code for your case.

DEFINE &TEXT&

PERFORM SALESG_DES FROM SALESGDES

USING &TVGPT-SPRAS&

USING &TVGPT-VKGRP&

CHANGING &TEXT&

ENDPERFORM

the description is in TEXT and u can display the same in the script.

Regards,

Chadnra Kavali