Function Module to create TSW-TICKET

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.

Try enquing the ticket using FM "ENQUEUE_E_OIJTKT" after the ticket is created by the FM OIJ_EL_A_TICKETS_MAINTAIN_N,
Call the FM OIJB_GENERATE_DOCUMENTS_N for the above created ticket with proper parameters and then DEQUEUE the ticket using FM DEQUEUE_E_OIJTKT.
This should generate the documents for the ticket.
Do let me know if it still doesnt work..
Best Regards
Vishnu

Similar Messages

  • Function Module to create TSW Nomination

    Hi,
    I'm using 'RFC_TSW_NOM_CREATEFROMDATA' Function Module to create TSW Nomination.
    The problem I'm facing here is - I'm unable to pass 'THIRD_NOMNR' field in the Item-structure of this Function Module.
    (Partner Nomination). I searched in the structure bapitswnom03, but it is not available.
    Is this the only FM available to create Nomination?
    I tried OIJ_NOM_MAINTAIN_MULTIPLE by passing UPDKZ = 'I', but it is not working.
    Can anyone help me in providing the field name for Partner Nomination in Strucure bapitswnom03 or please provide me some other FM name.
    Thanks & Regards,
    Sowmya

    Hi,
    Try below FMs
    OIJ_NOM_MAINTAIN
    OIJ_IF_NOM_MAINTAIN

  • Need a function module to create production order with reference

    Hi
    I need a function module to create a production order with reference to an existing order. There is no BAPI available for SAP 4.7 release. I found that the function module CO_ZF_PRODUCTIONORDER_CREATE does not create with reference to an existing order.
    Any help will be rewarded.
    Pavan

    Dear Pavan,
    Unfortunately there is no FM for this..
    Cheers
    Nitesh

  • Function modules to create a movement type 105 and 104

    Hi folks,
             I have created a custom screen and attached to MIGO Transaction. If my user enter data and click 'PASS' on my screen, a movement type 105 to be triggered in back ground. And if he click 'FAIL', movement type 104 need to be triggered. is there any BAPI or Function Module to create goods movement type. I have searched some function modules in SE37 and found some stuff. But i am confused which one to use...Could you pls guide me regarding this...
    for ur information, i am thinking to use these FM's
    MB_READ_GOODS_MOVEMENT
    MB_CREATE_GOODS_MOVEMENT
    MB_CANCEL_GOODS_MOVEMENT
    Will it be useful for me.
    Thanks in advance,
    Shyam.
    Edited by: shyam prasad on Jan 7, 2009 10:24 AM

    Hi
    Yes you can use this function modules.
    Thanks & Regards
    Kishore

  • Function module to create Inbound delivery with reference to Purchase Order

    Hi experts,
    I want to create Inbound delivery with refernce to Purchase Order. But I want to create item wise. For example If one purchase order is there with 10 line items. 10, 20, 30, 40, 50......100.
    If I am showing report for Purchase Order with select option and if I select first 5 line items 10, 20, 30, 40, 50 then my program should be create one Inbound delivery for selected line items only. I have tried BDC for Tcode VL31N, but its not worked. Is there any Function module to create Inbound delivery with reference to Purchase Order for selected line items????????

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

  • Function Module to create Delivery with JIT Calls

    Hi SAP Guru's,
    We are working on SAP 4.6C version.
    I am looking for a function module to create delivery with JIT Calls.
    We are currently using the SAP standard function module "SHP_VL10_DELIVERY_CREATE" to create Delivery with JIT Calls. Each JIT Calls has apx 60-80 materials in it and each material refers to a unique Scheduling Agreement. This function module is taking very long time in production server to create delivery, it does not take much time in dev or quality server.
    We have JITV setting profile (For Sold To Party and Partner Description Profile) set as RELACE (to summarize the line items in JIT Call).
    Is there another function module that we can use to create delivery with JIT Calls?
    Thanks in Advance,
    Amit

    Hi there,
    There is no such function module.
    Regards
    Sanju

  • Function Module for creating Functional Location BOM and Equipment BOM

    Hi All,
    Is there any function module for creating and changing Functional Location BOM and Equipment BOM ???

    Hi,
    Tables for Eq., BOM: EQST, STKO, STPO.
    Tables fro Fun., Loc., BOM: TPST, STKO, STPO.
    You can use FMs: CS_BOM_EXPL_TPL_V1, CS_BOM_EXPL_EQU_V2 & CS_BOM_EXPL_MAT_V2 for extracting the appropriate BOM related data.
    And for the Alternatives please check the customizing or check with your respective Module experts for the appropriate configuration.
    Hope this helps.
    Best Regards, Murugesh AS

  • Function Module for creating condition record (XKOMV table record)

    Hi,
    I have a requirement as like below,
    In the repair order i need to sum the GRWR condition type's  conditional values for all the line items (Except deliverable line item) and then i need to create an condition type GRWR under the deliverable line item with the above calculated conditional values,
    the table XKOMV will be having details about all the line item's condition types, in this table i need to add one more new record with the condition type of GRWR and the above calculated conditional values under the deliverable line item.
    for the above logic i am using the user exit
    USEREXIT_SAVE_DOCUMENT_PREPARE
    All the above things need to be done when the user click the save button in the transaction (VA01/VA02).
    Problem here is table XKOMV contains somany fields so manually we can't create xkomv record, is there any Function module to create condition type record?
    Regards,
    Manikumar
    Edited by: Manikumar Shanmugam on Mar 8, 2008 3:53 PM

    Hi,
       You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
    Regards
    Kiran Sure

  • Is there a BAPI or Function module can create a Customer Master record?

    Hi experts,
    In SE37, Is there a BAPI or Function module can create a Customer Master record?
    Regards

    BAPI_CUSTOMER_CREATEFROMDATA1
    also see this thread.
    Re: Create customer record  in SAP via BAPI
    кu03B1ятu03B9к

  • Function module to create formula profile : Device Management/ EDM

    Hi experts!
    We create Formula profile against register 2 of the bi-directional device using transaction EEDM06.
    We create profile header by using function module "ISU_S_PROFHEAD_CREATE" but this function module doesn't have input parameter that need to passed specifically creating Formula profile like-
    Formula Prof. Calc = ZNET (fixed)
    Status Group = (i.e., value valid, est man, changed/entered, from date) fixed
    Profile = Profile1 as allocated to RG-002. (always)
    After saving this Formula profile header, allocate the profile to Device is also couldn't be done using function module ISU_S_PROFHEAD_CREATE .
    Please help me is there specific function module to create Formula profile. If you need any clarification, please suggest.
    Thanks,
    Rohit

    you could also create a master data template in EPRODCUST for MD Template Category   INSTALLATION & EDM_PROFHEAD if you need to create the profile header.
    We've wrapped some in function module interfaces for easy automation.
    ISU_S_LPASSLIST_MAINTAIN is an internal function, so I dont recommend building anything on it.

  • Idoc/ Function module to create a Licence in GTS

    Dear experts,
      I have a situation where in I need to create Licence in GTS system based on the information from a 3rd party system. So, Is there any inbound idoc in GTS system to automatically create the licence (I'm using middle ware to convert the XML from 3rd party to an IDOC).
    Or is there any function module, to create a licence in GTS system.
    Thanks for the Info.
    Sorry for the duplication of same question that i posted in GTS forum. I couldn't get a single reply from 3 days, so I reposted the same.
    Thanks
    -Amit.

    Hi Amit
    I'm facing the same problem you had.
    May I ask you how you created the function module?
    Thanks in Advance
    Ashwaan

  • CRM - function module to create card account in deposit mangement

    Hi All,
    I need to function module to <b>display the details of business patner in CRM sytem</b>
    1. Function module to display address details of Business patner
    2. FM to display details of Identification number and identification type of Business patner.
    3. FM to display tax details of business patner.
    4. FM to display card details of Business patner
    5.)<b> Fm to create card account in deposit Mangement.</b>
    what is the transaction code to create card account in deposit management.
    Points will be awarded.
    Regards,
    vinoth.

    Hi Stefan,
    Thanks for the quick response.
    As you have suggested i am using the same set of Function Modules to create the service contracts.
    However can you please suggest how can i also change the address of the business partners i.e ship-to-party, sold-to-party, payee etc..
    And can you also suggest how to upload the header status of the service contract. (the value is getting set to default 'open')
    Thanks in advance

  • Function Module to create Outbound IDoc

    I have created a segment (ZSEGPRO), basic type (ZIDOCPRO) and message type (ZMSGPRO) to create a custom IDoc. Now I have to write a Function Module to create Outbound IDoc.
    I want to know what will be in Import, Export, Changing, Tables, Exceptions and Source code of that function module. The fields used in the segment ZSEGPRO is given below:
    Fld NameSource Data Elmn     Description
    PRODUCT MARA MATNR     Material number
    TEXT     MAKT     MAKTX     Material description
    PRN     MARA     YYBCEZNDR     Print Field
    Additional information: Export parameter will be BAPIRETURN for holding error message(if any).
    These Function Module need not require to be RFC enabled.

    Hi ,
    Refer these:
    There are two main reasons
    1) Make sure you call COMMIT WORK after the MASTER_IDOC_DISTRIBUTE
    http://help.sap.com/saphelp_nw04/helpdata/en/78/21783151ce11d189570000e829fbbd/content.htm
    2) The rest of the setting of the ALE IDoc might not have been done
    http://help.sap.com/saphelp_46c/helpdata/en/78/2177c951ce11d189570000e829fbbd/frameset.htm
    You can use the Area Menu WEDI and do the rest of the settings.
    ALE Quick Start guide and ALE Programming Guides for your reference
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFAALEQS/CABFAALEQS.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDALEPRO/BCMIDALEPRO.pdf
    Recent discussion which could be helpful,
    About WE21, BD64, sm59
    Regards
    Shiva Kumar

  • Function Module to Create or Change or Delete

    Hi Friends,
       Is there any function module to create or change or delete the business partners, there is a possiblity to do with CRMXIF_PARTNER_SAVE, but we are having some issue while calling in ISA applications.
    So please let me know is  there any possibility to get the functionality.
        We need to create the BP with all the details means central data, address data and communication data as well as some sales area data.
    Please share the helpful suggestions.
    Thanks,
    Bhaskar

    Try following Functions:
    BAPI_BUPA_FS_CREATE_FROM_DATA2
    BAPI_BUPA_CENTRAL_CHANGE
    or combination of both these FMs.
    Good Luck.

  • A function module to create service confirmation

    Hello,everyone
    I need your help.
    I'm looking for a function module to create crm service confirmation.
    Can you give me some help.
    Thanks.

    Hi,
    You can find a very simple example of function module CRM_ORDER_MAINTAIN at SDN WIKI:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/crm/creation%252bof%252bquatation%252bsample%252bcode
    Cheers,

Maybe you are looking for

  • Lost my contacts, how to transfer from macbook pro to ipad

    lost my contacts, how to transfer from macbook pro to ipad

  • T410 - Keyboard problems after Windows 8.1 upgrade

    Hi to all! Recently i'm facing huge problems with the keyboard of my T410. The Laptop shuts down when I press "Alt Gr", if I press shutdown - the screen spins several times before shutting down, if I use the arrow-keys the screen also flips, the norm

  • Content Presenter browse button not working in 11.1.1.8

    It is working in 11.1.1.7 but not in 11.1.1.8 .Please help ?? <oracle.adf.view.rich.component.fragment.UIXRegion> <ADF_FACES-00009> <Error processing viewId: /content-presenter-wizard/folderResults URI: /oracle/webcenter/doclib/view/jsf/taskflows/pre

  • Setup Records Management Centre

    Good day, I truly hope someone will be able to help me?  I am creating a records centre for a client for the first time in my life :-) on SharePoint 2013.  The client has a Document Management system with sub sites for each department, e.g. HR sub si

  • Invoice date earlier than GR date

    Hi Friends, We have GR based IV activated in our system. This helps us in preventing Invoice posting before GR. However currently the system is allowing me to post the invoice with the posting date earlier thatn the GR posting date. Can anyone please