Skip to Content
author's profile photo Former Member
Former Member

How to generate Transaction ID / Object ID ?

Hi All,

I need to generate Transaction ID or Object ID( char 10 ) for creating a business transaction using FM, how can I do that ?. is there any FM which gives the transaction ID ?..

Help me for points..

Thanks in Advance, Sudeep..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Oct 22, 2007 at 01:05 AM

    hi Sudeep,

    please try function module 'RH_GET_NUMBER_RANGE' to get the last current number of range, but in order to run this function module you need to know which number of range that you want to generate.

    you can get the number of range information by query to table CRMC_PROC_TYPE based on your transaction type.

    honestly, i have never tried to generate transaction id or object id manually.

    it usually automatically generate by sap system once the transaction type already configured.

    so i don't know if this function module is executed, wheather the number of range will update to next one or not.

    if this function module is not update it, then i think you need to update it manually.

    the table for number of range is NRIV.

    hopes it helps.


    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 22, 2007 at 12:44 AM

    Hi Sudeep,

    In CRM every transaction id or object id is associated with a GUID. We always generate the GUIDs inorder to create a transaction programatically.

    • Create a New GUID



    ev_guid = lv_transaction_guid.

    You can use the FM CRM_GUID_CREATE to generate a GUID and then refer the transaction with this GUID.

    Save the transaction by passing the GUID to the FM CRM_ORDER_SAVE in the table IT_OBJECTS_TO_SAVE and you will get the corresponding transaction id or object id in the table ET_SAVED_OBJECTS.

    <b>Reward points if it helps.</b>

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.