Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to get the spool number in smartforms?

Answer Posted / purnaiah

CALL FUNCTION FM_NAME
EXPORTING
CONTROL_PARAMETERS = CONTROL
OUTPUT_OPTIONS = OUTPUT
USER_SETTINGS = ' '
EKKO = L_DOC-XEKKO
PEKKO = L_DOC-XPEKKO
DRUVO = L_DRUVO
IMPORTING
JOB_OUTPUT_INFO = JOB_OUTPUT_INFO " Add this parameter
JOB_OUTPUT_OPTIONS = JOB_OUTPUT_OPTIONS
TABLES
EKPO = L_DOC-XEKPO
PEKPO = L_DOC-XPEKPO
XAEND = IT_XAEND
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.

Smartfrom Fm has one more structure under the IMPORTING parameters i.e. JOB_OUTPUT_INFO

Which you have not used in your FM. Use that you can get the spool number returened in the JOB_OUTPUT_INFO structure

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the dynapro keywords?

1132


What are the functional modules used in sequence in bdc? : abap bdc

1091


When, how and how would you control changes to standard SAP objects.

1867


What is the diff between database view and maintenance view?

1042


What is a fall back class?

1510


What is the lock object?

1077


Hat are the different types of mode (run code) in call transaction method?

1108


Does the table can have multiple foreign keys?

1034


Explain how to Handle the internal tables in ABAP?

1083


difference between Valuation type and valuation category?

2455


What is meant by hotspots?

1187


what are the two methods of modifying sap standard tables? : abap data dictionary

1113


what is the process of creating quotation using BAPIs.

2049


Can we create a gui status in a program from the object browser?

1177


What is pretty printer?

1029