2006 Oct 17 2:43 PM
Hi..
i have copied and modified standard bapi bapi_quotation_createfromdata.
Ihave got a program in se38 as yragtest4..
i need to call this report in my bapi and should be able to run from bapi..
Raghu
Hi..
i have copied and modified standard bapi bapi_quotation_createfromdata.
Ihave got a program in se38 as yragtest4..
i need to call this report in my bapi and should be able to run from bapi..
Raghu
2006 Oct 17 2:46 PM
2006 Oct 17 2:51 PM
Hi,
Goto swo1. Enter object Type->Method->Select particular Method and go to the programme of that method. There u try to use SUBMIT <Programme name>.
It should work the way you want.
If helpful plz reward.
Cheers
2006 Oct 17 3:03 PM
Thanks for your quick replies laurel and das.
das i tryed ur method..but i am not sure which method to take..
is there any other function modules method or like that..
regards.
vijay
2006 Oct 17 3:09 PM
Hi,
Please try FM <b>SUBMIT_REPORT</b>.
Hope this will help.
Regards,
Ferry Lianto
2006 Oct 17 3:15 PM
Thanks for your reply ferry..
what do i need to do here..
plz suggest me.
CALL FUNCTION 'SUBMIT_REPORT'
EXPORTING
RDIR = TRDIR
report = 'zragtest4'
RET_VIA_LEAVE = 'X'
VARIANT = ' '
VARIPROG = ' '
SKIP_SELSCREEN = ' '
EXPRESSIONS =
IMPORTING
VARIANT =
TABLES
SELECTION_TABLE =
EXCEPTIONS
JUST_VIA_VARIANT = 1
NO_SUBMIT_AUTH = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
2006 Oct 17 3:17 PM
deleted- double post sorry
Message was edited by: Laurent Robin
2006 Oct 17 3:28 PM
Hi,
You can code something like this inside the BAPI.
...
TABLES: TRDIR.
SELECT SINGLE * FROM TRDIR WHERE NAME = 'ZRAGTEST4.
CALL FUNCTION 'SUBMIT_REPORT'
EXPORTING
REPORT = TRDIR-NAME
RDIR = TRDIR
RET_VIA_LEAVE = ' '.
IF SY-SUBRC = 0.
...
ELSE.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
...Regards,
Ferry Lianto
Please reward points if helpful.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |