Application Development and Automation 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: 
Read only

Error in bdc :No batch input for the screen

former_member612655
Participant
0 Likes
2,120

Hi experts,

Based on the condition Account type = 'K' I developed a bdc program for updating feilds in bseg table using fb09 t-code Based on that condition all the records in excel where updating into bseg table.But Some records were throwing error eventhough they satisfied the condition. I checked in debug mode there it showing "No batch input for 0304 screen".The error records are given below.

I checked the condition for those error records they satisfying the condition ie all the records having account type 'K' but still those records not processing.Can you please help me to find out this

Select query which i was written

if it_datatab is not INITIAL.
select belnr
bukrs
gjahr
buzei
koart
from
bseg into table it_bseg FOR ALL ENTRIES IN it_datatab
where belnr = it_datatab-belnr
and bukrs = '1000'
and gjahr = '2020'
and koart = 'K'.
endif.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
1,998

Dynpro 0304 should refer to 'Down payment', adapt your BDC for those items checking value of special G/L accounts (BESG-ZUMSK).

(Also consider using some FM that will generate the BDC as FI_ITEMS_MASS_CHANGE or FI_DOCUMENT_CHANGE)

Hi experts,

Based on the condition Account type = 'K' I developed a bdc program for updating feilds in bseg table using fb09 t-code Based on that condition all the records in excel where updating into bseg table.But Some records were throwing error eventhough they satisfied the condition. I checked in debug mode there it showing "No batch input for 0304 screen".The error records are given below.

I checked the condition for those error records they satisfying the condition ie all the records having account type 'K' but still those records not processing.Can you please help me to find out this

Select query which i was written

if it_datatab is not INITIAL.
select belnr
bukrs
gjahr
buzei
koart
from
bseg into table it_bseg FOR ALL ENTRIES IN it_datatab
where belnr = it_datatab-belnr
and bukrs = '1000'
and gjahr = '2020'
and koart = 'K'.
endif.

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
1,999

Dynpro 0304 should refer to 'Down payment', adapt your BDC for those items checking value of special G/L accounts (BESG-ZUMSK).

(Also consider using some FM that will generate the BDC as FI_ITEMS_MASS_CHANGE or FI_DOCUMENT_CHANGE)

Read only

0 Likes
1,998

Through recording how can i adapt in bdc

Read only

0 Likes
1,998

Execute the recording SHDB with one of the document in error, then add a CASE BESG-ZUMSK in your code to choose correct dynpro.

Read only

1,998
case bseg-zumsk.
when 'A'
perform bdc_dynpro using 'SAPMF05L' '0304'.
perform bdc_field using 'BDC_CURSOR'
'BSEG-SGTXT'.
perform bdc_field using 'BDC_OKCODE'
'=AE'.
perform bdc_field using 'BSEG-ZUONR'
wa_datatab-zuonr.
perform bdc_field using 'BSEG-SGTXT'
wa_datatab-sgtxt. endcase. i wrote code like shown in above but still it is not processing those records