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

start condition

Hello,

i have a subtype of BUS2105. There i implemented a attribut documenttype (BSART) now i try to use a start condition based on this attribute. It doesn't work.

The start condition is documenttype = ZXXX

The event trace alway says "Operator 'EQ': The value of the left operand cannot be determined"

If i raise the event bei "swue" it works but if i use standard transaction me51n it doesn't work.

TO raise the event i used a userexit:

DATA: objkey TYPE SWEINSTCOU-OBJKEY,

empty_container TYPE STANDARD TABLE OF swcont.

objkey = im_banfn_new.

CALL FUNCTION 'SWE_EVENT_CREATE'

EXPORTING: objtype = 'YBUS2105'

objkey = objkey

event = 'CREATED'

TABLES: event_container = empty_container

EXCEPTIONS: objtype_not_found = 01.

Can someone explain the problem to me?

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jun 11, 2007 at 09:34 AM

    Hello,

    Userexits aren't necessarily the best way to raise an event. Most likely the data isn't written to the database yet. An event receiver is always executed in a different session by the workflow system, so if you are raising one in an exit that is called before the data is committed then your event receiver won't see all the document data.

    Try using change documents (which guarantee the data is physically written to the database) or a different exit.

    Also, you should always use the SAP_WAPI* function modules if possible as these are released for customer use - SAP_WAPI_CREATE_EVENT in your case.

    Hope that helps,

    Mike

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Manuel,

      Any particular reason you can't use the standard events? I might be stating the obvious but if you deelegate your subtype you can check your new attribute in a BUS2105.RELEASESTEPCREATED event.

      Alternatively have a look at other BAdIs - I know some of them are designed to work in the update task (the bit that does the physical DB write). Depending on the userexit, you could also try changing your FM call to :

      CALL FUCTION ... IN UPDATE TASK.

      Cheers,

      Mike

  • author's profile photo Former Member
    Former Member
    Posted on Jun 11, 2007 at 10:10 AM

    hai

    creat an method container in the mehod ur using and make sure the container having the propertys as document type (bsart) according to ur requirments.

    now try to make the start conditions it will surly come .

    hope ur problem solved

    reward me with ur valuable ponts

    regards

    rose

    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.