cancel
Showing results for 
Search instead for 
Did you mean: 

Error No batch input data for screen SAPMM06E 0514

Former Member
0 Kudos

Hello all, I am creating contracts in SRM (GOA documents).

When I try to distribute them to backend system, IDOCS are generated with errors.

Error is: No batch input data for screen SAPMM06E 0514

I have this data in the IDOC segments:

E1EDK14 009 I have purchasing group

E1EDK14 014 I have purchasing organization

E1EDK14 013 I have document type GCTR

E1EDK14 011 I doesn´t have nothing (I think must appears company code here).

The code for BADI BBP_CTR is this:

method IF_EX_BBP_CTR~MODIFY_IDOC_DATA_CTR.

constants: c_lc_e1edp01(7) type c value 'E1EDP01'," Constant to hold E1EDP01

c_lc_e1edk14(7) type c value 'E1EDK14'," Constant to hold E1EDK14

c_lc_e1edp19(7) type c value 'E1EDP19'," Constant to hold E1EDK14 " Vendor Consignment Logic ->

c_lc_orgid(3) type c value '011'. " Constant to hold value 011

Declaration for Local Work Areas

data: wa_ls_t001k type t001k, " W.A for t001k

wa_ls_edidd type edidd, " W.A for idoc

wa_ls_e1edp01 type e1edp01, " W.A for segment e1edp01

wa_ls_items type bbps_ctr_mm_item. " W.A for communication structure

Declaration for Local Variables

data: ws_c_lv_bukrs type bukrs. " Variable too hold comp.code

data: ws_i_lv_index type i. " Variable for integer

Declaration for Field Symbols

field-symbols: -sdata+3(4) = ws_c_lv_bukrs.

endif.

endloop. "LOOP AT ct_blaord

endif. "IF NOT ws_c_lv_bukrs

endif. "IF sy-subrc EQ 0.

endmethod.

The problem is this:

In the code I am taking BUKRS from WERKS in segment E1EDP01 and when I check this segment in my IDOC I don´t have this parameter. Why? Where take this segment this data? From customizing or from material's plant?

I saw another thing in the customizing. I am using purchasing organization 0011 and in the customizing this purchasing organization is not linked with any company code. Can be it the problem?

Thanks

Rosa Rodríguez

Edited by: Rosa Rodriguez on May 20, 2010 11:14 AM

Edited by: Rosa Rodriguez on May 20, 2010 11:15 AM

Edited by: Rosa Rodriguez on May 20, 2010 11:16 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

In That Program for the given screen the error occurring is -

The Purchasing Org. EKKO-EKORG Has not been assigned to a CoCode Please enter A compnay code

Pls check if the Company code populated with Qualifier 011 and Purchase Org Populated with Qualifier 014 are configured correctly in ECC in the segment E1EDK14.

All the best,

Vamsi

Former Member
0 Kudos

Vamsi, yes, I know that the problem is this. But I want to know where the system takes this company code?

I think in the code that I put in the BADI, takes company code from WERKS but I am not sure.

In E1EDK14 I don´t have company code field filled.

Where takes the IDOC the company code?

Thanks

Rosa

Former Member
0 Kudos
select single bukrs from t001k into ws_c_lv_bukrs where bwkey = wa_ls_e1edp01-werks.

We are getting Company code our T001K for the Plant (as BWKEY - Valuation Area).

Can you pls check if the Plant given in the distribution of the GOA has appropriate Entry in the table T001K.

I believe you are getting Blank in E1EDK14 with Qualifier 011?

All the best,

Vamsi

Former Member
0 Kudos

Hello Vamsi, yes! I am taking this parameter as blank with a (/)

I checked table T001K and I have this:

Material that I am using in the GOA is created for plant 0015

In table T001K BWKEY 0015 has an entrie with company code A46.

I need to have this parameter in other place? I don´t know why put company code as blank

Former Member
0 Kudos

Hello Vamsi, I have the problem but I don´t know solve it.

In the code you can see this:

select single bukrs from t001k

into ws_c_lv_bukrs

where bwkey = wa_ls_e1edp01-werks.

But in my IDOC E1EKP01-WERKS doesn´t appears, I can´t see this segment in my IDOC. Why?

As this segment is empty, then BWKEY is empty and company code goes empty.

Thanks

Rosa

Former Member
0 Kudos

Hello, all is OK now.

The problem was that I was not filling location in the distribution tab in the GOA.

For this reason the document doesn´t take valuation area, plant and company code.

One more question, can I create contracts for non valuated materials?

Thanks

Rosa

Former Member
0 Kudos

Rosa --- Congratulations Man.

For Non Valuated Materials Accounting view will not be there and I Believe we can't create Contracts....!

FYI - If you are trying to do multiple location distribution then you may need to do some more changes in ECC BADI.

All the best,

Vamsi.

Former Member
0 Kudos

Thanks for your help Vamsi. You are great!

Answers (0)