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: 

Hi I am getting Error in BAPI_PO_CREATE1

arsul_parshuram
Participant
0 Kudos

Dear All,

I am getting error TD 600 Text *ID*  Language not found in BAPI_PO_CREATE1.

while creating PO by BAPI.

Thanks,

Arsul

19 REPLIES 19

JL23
Active Contributor
0 Kudos

if that is the full message - means nothing to see after the word language - then you just forgot to specify in which language you want create the text.

0 Kudos

I have passed just short_test = 'PO'. and language passed in header 'EN'.

Please help on this

JL23
Active Contributor
0 Kudos

I hope you did not miss the X in the Xstructure

POHEADERX-LANGU      = 'X'.

venkateswaran_k
Active Contributor
0 Kudos

Probably, in the

BAPIMEPOHEADER

make sure that you passed the langu key

PO_HEADER-LANGU      = 'E'.  or   sy-langu

Regards,

Venkat

0 Kudos

This is my code

pohead-comp_code    = wa_final-bukrs.

     pohead-doc_type     = wa_final-bsart.

     pohead-creat_date   = sy-datum.

     CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
       EXPORTING
         INPUT  = wa_final-lifnr
       IMPORTING
         OUTPUT = wa_final-lifnr.

     pohead-vendor       = wa_final-lifnr.
     pohead-purch_org    = wa_final-ekorg.
     pohead-pur_group    = wa_final-ekgrp.
     pohead-langu        = sy-langu.
     pohead-doc_date     = sy-datum.
     pohead-PMNTTRMS     = wa_final-zterm.
     pohead-CURRENCY     = wa_final-waers.

     poheadx-comp_code  = c_x.
     poheadx-doc_type   = c_x.
     poheadx-creat_date = c_x.
     poheadx-vendor     = c_x.
     poheadx-langu      = c_x.
     poheadx-purch_org  = c_x.
     poheadx-pur_group  = c_x.
     poheadx-doc_date   = c_x.
     poheadx-PMNTTRMS   = c_x.
     poheadx-CURRENCY   = c_x.
     poheadx-LANGU      = c_x.

* Item Level Data
     poitem-po_item    = 1.

     CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
       EXPORTING
         INPUT  = wa_final-matnr
       IMPORTING
         OUTPUT = wa_final-matnr.
     poitem-material   = wa_final-matnr.
     poitem-plant      = wa_final-werks.
     poitem-stge_loc   = wa_final-lgort.
     poitem-quantity   = wa_final-menge.
     poitem-MATL_GROUP = wa_final-matkl.
     poitem-TAX_CODE   = wa_final-mwskz.
     poitem-PO_UNIT    = wa_final-meins.
     poitem-PO_PRICE   = '2'.
     poitem-NET_PRICE  = wa_final-netpr.
     poitem-short_text = 'Po'.
     poitem-taxjurcode = 'IN00'.
     poitemx-acctasscat = c_x .

     append poitem.

     poitemx-po_item    = 1.
     poitemx-po_itemx   = c_x.
     poitemx-material   = c_x.
     poitemx-plant      = c_x .
     poitemx-stge_loc   = c_x .
     poitemx-quantity   = c_x .
     poitemx-tax_code   = c_x .
     poitemx-item_cat   = c_x .
     poitemx-acctasscat = c_x .
     poitemx-MATL_GROUP  = c_x .
     poitemx-PO_UNIT     = c_x.
     poitemx-PO_PRICE    = c_x.
     poitemx-NET_PRICE   = c_x.
     poitemx-short_text  = c_x.
     poitem-taxjurcode   = c_x.
     append poitemx.

* Schedule Line Level Data
     posched-po_item         = 1.
     posched-sched_line      = 1.
     posched-del_datcat_ext  = 'D'.
     posched-delivery_date   = wa_final-EEIND.
     posched-quantity        = wa_final-menge.
     append posched.

     poschedx-po_item        = 1.
     poschedx-sched_line     = 1.
     poschedx-po_itemx       = c_x.
     poschedx-sched_linex    = c_x.
     poschedx-del_datcat_ext = c_x.
     poschedx-delivery_date  = c_x.
     poschedx-quantity       = c_x.
     append poschedx.

   endloop.

   CALL FUNCTION 'BAPI_PO_CREATE1'
     EXPORTING
       poheader         = pohead
       poheaderx        = poheadx
       testrun          = ' '
     IMPORTING
       exppurchaseorder = ex_po_number
       expheader        = exp_head
     TABLES
       return           = return
       poitem           = poitem
       poitemx          = poitemx
       poschedule       = posched
       poschedulex      = poschedx.

   CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
     EXPORTING
       wait = 'X'.

Please advice getting  error
TD 600 Text *ID*  Language not found

0 Kudos

try commenting(removing these statements)

pohead-langu        = sy-langu.

poheadx-langu      = c_x.

and check.

Regards

0 Kudos

is this really what you get: TD 600 Text *ID*  Language not found

or did you just type *ID*  to hide the right value?

I mean, a short text does not have a text id, a short text is just a table field in EKPO, a long text has a text ID is stored in STXH/STXL

is your sy-langu equal to the vendors communication language (LFA1-SPRAS) ?

0 Kudos

Hi

you add  following items.

Add this in BAPI

in data section

PO_TEXTHEADER TYPE TABLE OF  BAPIMEPOTEXTHEADER WITH HEADER LINE,

        PO_TEXTHEADER-TEXT_ID    = 'F01'.

        CONCATENATE 'a text of your choice...' 'ddddd' INTO PO_TEXTHEADER-TEXT_LINE SEPARATED BY '-'.

        APPEND PO_TEXTHEADER.

0 Kudos

Hi

you add  following items.

Add this in BAPI

in data section

DATA :

PO_TEXTHEADER TYPE TABLE OF  BAPIMEPOTEXTHEADER WITH HEADER LINE,

in the code...where you populate the tables for BAPI....

        PO_TEXTHEADER-TEXT_ID    = 'F01'.
        CONCATENATE ' your text ... say PO Creted by BAPI'   ' ...'  INTO PO_TEXTHEADER-TEXT_LINE SEPARATED BY '-'.
        APPEND PO_TEXTHEADER.

Add  PO_TEXTHEADER it to the BAPI in Table section.

Regards,

Venkat

0 Kudos

Hi,

I have added below code but still  am getting same error.

PO_TEXTHEADER-TEXT_ID    = 'TD'.
    CONCATENATE 'PO Creted by BAPI' 'SAPUSER' INTO PO_TEXTHEADER-TEXT_LINE SEPARATED BY '-'.
     APPEND PO_TEXTHEADER.

below is the error.


Type = 'E'

ID = 'TD'

Number = '600'.

Message = Text * ID * language * not found

long_msg_no = 000.

Parameter = POHEADER

system  = ECDCLNT120

0 Kudos

PO_TEXTHEADER-TEXT_ID    = 'TD'

Instead of TD  put F01.   (F-Zero-1)   --  There is no TD item available for Purchse Order texts... So use F01 to put it in header text.

PO_TEXTHEADER-TEXT_ID    = 'F01'

Regards,

Venkat

0 Kudos

This message was moderated.

0 Kudos

Dear Venkat,

I have checked with both 'TD' and 'F01' but still problem not solved.

it is showing same error. I am developing this new client is there any setting i have to maintain data at client level.

Thanks for your replay.

Thanks

Arsul

0 Kudos

Have you tried to create a PO manually in ME21N using the same values?

Create a PO manually in ME21N, then display it again in ME23N, then go to header text tab. open a text, double click the text which will take you to the text editor. in text editor choose from menu GOTO > Header. Here you find all text related information, what the text id is, what the language is ....

0 Kudos

Dear All Thanks for replay.

Now issue has been soved.

Thanks,

Arsul

0 Kudos

Hi Parshuram,

It will be good if you post the Solution.. saying what was causing the problem and how it is resolved.  This will be helpful for everyone in future who is looking for solution to the same kind of problem....

Regards,

Venkat

0 Kudos

Hi Venkateswaram,

It is solved by using you given solution but i have another problem client develeopment server.

Thanks,

Arsul

0 Kudos

Hi

Good to know it is solved.

kindly update the issue with Problem and Resolution and mark as Closed.

It will be useful for the people who is facing the similar problem and thus got this updae in search.

Create a separate thread for the nw problme.

Regards,

Venkat

irfanjazz1
Participant
0 Kudos

Check Po

Header : doc_type

Po HeaderX : 'X'