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

Problem in filling up the parameters in tcode BPC4

Former Member
0 Likes
857

Hi experts!

Can you teach me how to fill up required parameters in tcode BPC4 using call transaction syntax.

I've tried it using this code:

SET PARAMETER ID 'BPDENTRY-PARTNR' FIELD i_kna1-kunnr. " Business partner

IF i_kna1-ktokd = '1000'.

SET PARAMETER ID 'BPDENTRY-GROUP_ID' FIELD 'SHRT'. " Grouping

ELSEIF i_kna1-ktokd = '2000'.

SET PARAMETER ID 'BPDENTRY-GROUP_ID' FIELD 'LONG'. " Grouping

ENDIF.

SET PARAMETER ID 'BPDENTRY-BNAT' FIELD 'X'. " Natural Person

SET PARAMETER ID 'BPDENTRY-CUSTOMER' FIELD i_kna1-kunnr. " Customer Number

SET PARAMETER ID 'BPDADREF-ADR_REF_K' FIELD 'DEFAULT'. " Address ID

CALL TRANSACTION 'BPC4' AND SKIP FIRST SCREEN.

But it didn't work.

I traced up the program itself and i found out that the first screen is dynamically made during runtime.

Does this affect the values i've set before calling the tcode or my parameter id's are just not correct?

Thanks,

Mike

Hi experts!

Can you teach me how to fill up required parameters in tcode BPC4 using call transaction syntax.

I've tried it using this code:

SET PARAMETER ID 'BPDENTRY-PARTNR' FIELD i_kna1-kunnr. " Business partner

IF i_kna1-ktokd = '1000'.

SET PARAMETER ID 'BPDENTRY-GROUP_ID' FIELD 'SHRT'. " Grouping

ELSEIF i_kna1-ktokd = '2000'.

SET PARAMETER ID 'BPDENTRY-GROUP_ID' FIELD 'LONG'. " Grouping

ENDIF.

SET PARAMETER ID 'BPDENTRY-BNAT' FIELD 'X'. " Natural Person

SET PARAMETER ID 'BPDENTRY-CUSTOMER' FIELD i_kna1-kunnr. " Customer Number

SET PARAMETER ID 'BPDADREF-ADR_REF_K' FIELD 'DEFAULT'. " Address ID

CALL TRANSACTION 'BPC4' AND SKIP FIRST SCREEN.

But it didn't work.

I traced up the program itself and i found out that the first screen is dynamically made during runtime.

Does this affect the values i've set before calling the tcode or my parameter id's are just not correct?

Thanks,

Mike

4 REPLIES 4
Read only

Former Member
0 Likes
750

Check syntax of SET parameter

Use this

SET PARAMETER ID 'SHRT' FIELD value

Read only

Former Member
0 Likes
750

instead of the fieldname ''BPDENTRY-PARTNR' give the parameter id

available in data element- further characteristics.

required statement :

SET PARAMETER ID 'BPN' FIELD i_kna1-kunnr. " Business partner

like wise for the other fields.

SET PARAMETER ID 'KUN' FIELD i_kna1-kunnr. " Customer Number

SET PARAMETER ID 'ADK' FIELD 'DEFAULT'. " Address ID

CALL TRANSACTION 'BPC4' AND SKIP FIRST SCREEN.

Regards,

Deeba

Read only

Former Member
0 Likes
750

Michael,

PARAMETER ID is what you find when you open the data element in SE11 and see the parameter id

or can also be seen from the technical help of that screen field.

its not the structures name..

Read only

Former Member
0 Likes
750

Thanks Anil Mane and Mdi.Deeba for your reply...

Actually Mdi Deeba is right bout it.. but I've found out that using this logic is already useless.

My logic was suppose to be like this, I would like to call tcode BPC4 thru a user exit from XD01(creating a customer) AFTER the record has been saved so that the kunnr(Customer Code) will be generated and i can use it as parameter in BPC4, but there is no user exit in XD01 that occurs AFTER saving.. instead there's a user exit BEFORE saving which is the SAPMF02D.

Please can you help me some other ways to implement my logic. I've also tried BAPI's in XD01 but i've still haven't seen that event wherein i can call BPC4 AFTER the customer has been saved in XD01.

Can you help me experts?

Thanks,

Mike