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

CALL TRANSACTION

adnanmaqbool
Contributor
0 Likes
628

Dear Guys

I have to update a field ( MATERIAL MATNR ) in FBL3N using MASS CHANGE. Mass Change use the Transaction Code FB02 to update the fields .

In FB02 there are different screens to which MASS CHANGE updates. There is also a screen called Coding Block which has Material Number Field.

Now I want to use the MASS CHANGE in FBL3N to update the field Material present on screen coding block in transaction FB02.

My problem is that FBL3N is not updating the fields in Coding Block Screen but other screens in FB02.

Now I m doing modification in FBL3N so that MASS CHANGE also update the fields present in coding block.

I have tried a code some thing like

bdcdata-fnam = 'BDC_OKCODE'.

bdcdata-fval = 'COBL_MORE'.

append bdcdata.

clear bdcdata.

bdcdata-program = 'SAPLKACB'.

BDCDATA-DYNPRO = '0002'.

bdcdata-dynbegin = 'X'.

append bdcdata.

clear bdcdata.

loop at fldtab.

clear bdcdata.

IF fldtab-fname = 'MATNR'.

bdcdata-fnam = 'BSEG-MATNR'.

bdcdata-fval = s_bseg-MATNR.

append bdcdata.

clear bdcdata.

ENDIF.

endloop.

bdcdata-fnam = 'BDC_OKCODE'.

bdcdata-fval = 'ENTE'.

append bdcdata.

clear bdcdata.

wh<b>ich is not working fine, that is not updateing the field.</b>

Is there any solution of this problem.

Experts Opinion is needed.

Thnx

Dear Guys

I have to update a field ( MATERIAL MATNR ) in FBL3N using MASS CHANGE. Mass Change use the Transaction Code FB02 to update the fields .

In FB02 there are different screens to which MASS CHANGE updates. There is also a screen called Coding Block which has Material Number Field.

Now I want to use the MASS CHANGE in FBL3N to update the field Material present on screen coding block in transaction FB02.

My problem is that FBL3N is not updating the fields in Coding Block Screen but other screens in FB02.

Now I m doing modification in FBL3N so that MASS CHANGE also update the fields present in coding block.

I have tried a code some thing like

bdcdata-fnam = 'BDC_OKCODE'.

bdcdata-fval = 'COBL_MORE'.

append bdcdata.

clear bdcdata.

bdcdata-program = 'SAPLKACB'.

BDCDATA-DYNPRO = '0002'.

bdcdata-dynbegin = 'X'.

append bdcdata.

clear bdcdata.

loop at fldtab.

clear bdcdata.

IF fldtab-fname = 'MATNR'.

bdcdata-fnam = 'BSEG-MATNR'.

bdcdata-fval = s_bseg-MATNR.

append bdcdata.

clear bdcdata.

ENDIF.

endloop.

bdcdata-fnam = 'BDC_OKCODE'.

bdcdata-fval = 'ENTE'.

append bdcdata.

clear bdcdata.

wh<b>ich is not working fine, that is not updateing the field.</b>

Is there any solution of this problem.

Experts Opinion is needed.

Thnx

3 REPLIES 3
Read only

adnanmaqbool
Contributor
0 Likes
522

I have also tried to do this.

When BCDDATA is full with all values in the end I put this code.

bdcdata-program = 'SAPMF05L'.

BDCDATA-DYNPRO = '1014'. "Screen NO of FB02

bdcdata-dynbegin = 'X'.

append bdcdata.

clear bdcdata.

bdcdata-fnam = 'BDC_OKCODE'. " to mov to Coding Block Screen

bdcdata-fval = 'COBL_MORE'.

append bdcdata.

clear bdcdata.

bdcdata-program = 'SAPLKACB'. "coding block screen

BDCDATA-DYNPRO = '0002'.

bdcdata-dynbegin = 'X'.

append bdcdata.

clear bdcdata.

loop at fldtab.

clear bdcdata.

IF fldtab-fname = 'MATNR'. "field in coding block

bdcdata-fnam = 'BSEG-MATNR'.

bdcdata-fval = s_bseg-MATNR.

append bdcdata.

clear bdcdata.

ENDIF.

endloop. "enter

bdcdata-fnam = 'BDC_OKCODE'.

bdcdata-fval = 'ENTE'.

append bdcdata.

clear bdcdata.

But it still its not working

thnx

Read only

0 Likes
522

hi,

FB02N is an njoy transaction and hence BDC wouldnt work fine. please find an appropriate BAPI for the same tcode.

santhosh

Read only

Former Member
0 Likes
522

Hi use index then it will work eg

data: index(2) type n.

loop at fldtab.

clear bdcdata.

IF fldtab-fname = 'MATNR'.

Concatenate 'BSEG-MATNR('

index

')'.

dcdata-fnam = v_str.

bdcdata-fval = s_bseg-MATNR.

append bdcdata.

clear bdcdata.

ENDIF.

index = index + 1.

endloop.