2008 Apr 29 7:36 AM
Dear Experts;
I want BAPI for transaction VL04.( in 4.7).
BAPI available is SHP_VL04_PRESTEP.
but it calls the SAP's transaction screen which I dont want.
On VL04's selection screen I want fields -
1) Shipping point (vstel) - Parameter
2) Orders (allea) - Checkbox ( to be ticked )
3) Purchase Orders (alleb) - Checkbox. ( to be ticked )
4) Order(s_vbeln) - Select option
5) Purchase Orders (s_ebeln) - Select option.
I want these fields - to be passed through IMPORT or TABLE
parameters of a BAPI.
and take output in HTML format ( to link it to SOA frontend )
i tried this way
1) I SUBMITed the standard program of transaction VL04
i.e. RV50SBT1 .
2) Exported the list to memory.
3) Get the list from memory.
4) write the list.
5) wrote the list in html format.
my code *******************
FUNCTION ZBAPI_SOPO_WORKLIST.
*"----
""Local interface:
*" TABLES
*" P_TABLE STRUCTURE W3HTML
*" SELTAB STRUCTURE RSPARAMS
*" MTAB_REPORT_LIST STRUCTURE ABAPLIST
*" MTAB_REPORT_HTML STRUCTURE W3HTML
*"----
Types: Begin of tt_html,
html type W3HTML,
End of tt_html.
Data: LIST_TAB type standard table of ABAPLIST.
Submit RV50SBT1 with SELECTION-TABLE SELTAB
Exporting list to Memory and return.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = MTAB_REPORT_LIST
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'WRITE_LIST'
TABLES
LISTOBJECT = MTAB_REPORT_LIST
EXCEPTIONS
EMPTY_LIST = 1
OTHERS = 2.
CALL FUNCTION 'WWW_LIST_TO_HTML'
TABLES
HTML = MTAB_REPORT_HTML
EXCEPTIONS
OTHERS = 1.
LOOP AT MTAB_REPORT_HTML.
ENDLOOP.
*****************************************************
after executing this I get the output as the list of Salesorder and Purchase order displayed ( that is the basic list )
uptill this everything goes well.
my problem is **********
using VL04 transaction we get the same output
but alongwith that basic list we get SAVE option ( i.e.button in standard toolbar ) clicking which we get the next screen as
Log for Delivery Run . on that screen we get one button for DELIVERIES on application toolbar . Clicking that button the
Outbound delivery gets created and Order no. and Delivery no. is shown on the next screen.
This thing is possible through tcode VL04
but NOT through BAPI I have written as on executing the BAPI we just get that Basic list , But NOT the SAVE functionality..........
Could anybody help me out.
Points will be rewarded to every attempt.
Thanks ;
Max
ENDFUNCTION.
but it gives me
Dear Experts;
I want BAPI for transaction VL04.( in 4.7).
BAPI available is SHP_VL04_PRESTEP.
but it calls the SAP's transaction screen which I dont want.
On VL04's selection screen I want fields -
1) Shipping point (vstel) - Parameter
2) Orders (allea) - Checkbox ( to be ticked )
3) Purchase Orders (alleb) - Checkbox. ( to be ticked )
4) Order(s_vbeln) - Select option
5) Purchase Orders (s_ebeln) - Select option.
I want these fields - to be passed through IMPORT or TABLE
parameters of a BAPI.
and take output in HTML format ( to link it to SOA frontend )
i tried this way
1) I SUBMITed the standard program of transaction VL04
i.e. RV50SBT1 .
2) Exported the list to memory.
3) Get the list from memory.
4) write the list.
5) wrote the list in html format.
my code *******************
FUNCTION ZBAPI_SOPO_WORKLIST.
*"----
""Local interface:
*" TABLES
*" P_TABLE STRUCTURE W3HTML
*" SELTAB STRUCTURE RSPARAMS
*" MTAB_REPORT_LIST STRUCTURE ABAPLIST
*" MTAB_REPORT_HTML STRUCTURE W3HTML
*"----
Types: Begin of tt_html,
html type W3HTML,
End of tt_html.
Data: LIST_TAB type standard table of ABAPLIST.
Submit RV50SBT1 with SELECTION-TABLE SELTAB
Exporting list to Memory and return.
CALL FUNCTION 'LIST_FROM_MEMORY'
TABLES
listobject = MTAB_REPORT_LIST
EXCEPTIONS
not_found = 1
OTHERS = 2.
CALL FUNCTION 'WRITE_LIST'
TABLES
LISTOBJECT = MTAB_REPORT_LIST
EXCEPTIONS
EMPTY_LIST = 1
OTHERS = 2.
CALL FUNCTION 'WWW_LIST_TO_HTML'
TABLES
HTML = MTAB_REPORT_HTML
EXCEPTIONS
OTHERS = 1.
LOOP AT MTAB_REPORT_HTML.
ENDLOOP.
*****************************************************
after executing this I get the output as the list of Salesorder and Purchase order displayed ( that is the basic list )
uptill this everything goes well.
my problem is **********
using VL04 transaction we get the same output
but alongwith that basic list we get SAVE option ( i.e.button in standard toolbar ) clicking which we get the next screen as
Log for Delivery Run . on that screen we get one button for DELIVERIES on application toolbar . Clicking that button the
Outbound delivery gets created and Order no. and Delivery no. is shown on the next screen.
This thing is possible through tcode VL04
but NOT through BAPI I have written as on executing the BAPI we just get that Basic list , But NOT the SAVE functionality..........
Could anybody help me out.
Points will be rewarded to every attempt.
Thanks ;
Max
ENDFUNCTION.
but it gives me
2008 Apr 29 7:45 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |