Hi,
I was using FM 'OIJ_EL_A_TICKETS_MAINTAIN_N' to create a ticket, with the similar data by which I was actually able to create a ticket manually using O4TEN. The ticket is not actually created completely by this FM.
The FM is creating a record in tables OIJ_EL_TICKET_H and OIJ_EL_TICKET_I but the status and substatus values are "B"(Checked) and "4"(Positive), which is why the ticket is not create completely.
for the tickets which are created manually using O4TEN the status and substatus values are "C"(Planned) and "6" (Complete).
I checked the program for O4TEN in debug mode and found that after calling FM 'OIJ_EL_A_TICKETS_MAINTAIN_N' the program is calling other subroutines like "PERFORM generate_documents_for_ticket" "PERFORM ticket_enqueue" in the inclulde "MOIJTNF38" for document generation and others.
The program is using some additional methods in addition to 'OIJ_EL_A_TICKETS_MAINTAIN_N'.
If you have ever used a FM or a BAPI to create ticket which takes care of all these and creates a ticket completly, kindly let me know.
If you have any procedures(like the combination of a FM-'OIJ_EL_A_TICKETS_MAINTAIN_N' or BAPI with a BADI) Let me know.