Enterprise Resource Planning Blogs by Members
Gain new perspectives and knowledge about enterprise resource planning in blog posts from community members. Share your own comments and ERP insights today!
cancel
Showing results for 
Search instead for 
Did you mean: 
SAP TSW (Traders’ and Schedulers’ Workbench) is successfully being used by many Oil & Gas, Mining and Chemical companies to manage their trading, scheduling and Logistics functions efficiently for last several years.

Objective of this blog is to make understand the mandatory steps to be followed while creating ticket for nomination through the ABAP program.

Following are the steps:

Call FM   'OIJ_EL_A_TICKETS_MAINTAIN_N'

CALL FUNCTION 'OIJ_EL_A_TICKETS_MAINTAIN_N'
EXPORTING
is_tkt_header       =     ls_header
it_items                =     lt_items
it_tkt_error_log    =     lt_err_maint_tkt
it_tkt_doc_flow    =     lt_maint_doc_flow
iv_commit           =      ''
iv_lock                =      ''
IMPORTING
es_tkt_header     =     ls_header
et_items              =     lt_items
et_tkt_error_log  =      lt_err_maint_tkt
et_tkt_doc_flow  =      lt_maint_doc_flow
EXCEPTIONS
ticket_locked      =      1
OTHERS            =      2
.

In ls_header ticket_key must be  blank and update indicator must be 'I' . In lt_items update indicator must be 'I'. This FM creates ticket.

Call FM 'ENQUEUE_E_OIJTKT' - to en-queue the ticket after creation

Call FM ' OIJB_GENERATE_DOCUMENTS_N' to generate the documents for the ticket

Call FM   DEQUEUE_E_OIJTKT

These steps if followed properly will generate ticket successfully.

 

Hope you find the above information helpful .Please drop in your comments / feedback / Suggestions / below.
1 Comment
Labels in this area