Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Why my ITEM TEXT is NOT creating/appearing in VA03, for INBOUND orders?

Former Member
0 Kudos

Hi Experts,

The sales ordrers comes to our sytsem EDI as a INBOUND ORDERS05.

The FM is IDOC_INPUT_ORDERS.

If some thing wrong with materails, like not existing in MARA, so,......I need to create a TEXT on the sales oder at ITEM level under EDI - TEXT name.

So, am using FM of CREATE_TEXT in the user-exit of zxvedu05 of the above said FM. and am passing all parametrs correctly!!!!!!!!! but, am NOT seeing any TEXT in VA03????????????



   CALL FUNCTION 'CREATE_TEXT'
      EXPORTING
        FID         = '0002'
        FLANGUAGE   = 'E'
        FNAME       = XTDNAME1
        FOBJECT     = 'VBBP'
        SAVE_DIRECT = 'X'
      TABLES
        FLINES      = TLINETAB1
      EXCEPTIONS
        NO_INIT     = 01
        NO_SAVE     = 02.

Let me know that, Where is the mistake?

Is am NOT using correct exit?

Is I need to pass some more input parameters?

replies appreciated.

thanq

Edited by: SAP ABAPer on Sep 18, 2008 6:27 PM

Edited by: SAP ABAPer on Sep 18, 2008 6:28 PM

1 ACCEPTED SOLUTION

Vijay
Active Contributor
0 Kudos

hi,

you can do one more thing. do not call fm inside eXit rather call a perform with keyword on commit and call fm inside that form. what it will do it will first create the sales order and then will create teXt for the item of that teXt.

regards

vijay

5 REPLIES 5

valter_oliveira
Active Contributor
0 Kudos

What value is in XTDNAME1? Did you concatenate vbeln and posnr?

Regards,

Valter Oliveira.

former_member188685
Active Contributor
0 Kudos

Why are you calling this function, if you fill the segments with the proper data then it will be taken care by Function module.

former_member188685
Active Contributor
0 Kudos

in the include LVEDAF08

you can find the perform

PERFORM CHECK_ORDER_POSTED USING RETCODE
                               CHANGING RC.

inside this CREATE_TEXT handled.

and the exit you are using mostly don't contain any order number.so it will fail.

0 Kudos

thanq

and the exit you are using mostly don't contain any order number.so it will fail.

so, mostly, or NEVER?

in my case, am getting as export parameter with name of SALES_DOCUMENT.

in the include LVEDAF08

this include is NOT triggering.........but, LVEDAFOF is triggering, but, even u r mentioned PERFORM is also existing here & triggering.

Edited by: SAP ABAPer on Sep 19, 2008 4:36 PM

Vijay
Active Contributor
0 Kudos

hi,

you can do one more thing. do not call fm inside eXit rather call a perform with keyword on commit and call fm inside that form. what it will do it will first create the sales order and then will create teXt for the item of that teXt.

regards

vijay