Skip to Content
0
Feb 04, 2010 at 11:19 AM

Bapi Bdc Combination to create customer

101 Views

Dear all,

I want to create a customer master from external system. What are the standard bapis are there they re not suitable for my requirement. I approach it in the following way. I did a bdc for xd01 and trying to call it from a rfc fm which i prepared. But the data that i passes from this fm is not reaching my bdc program. If any body have a good idea on this please share your idea with me .

1) I created an import parameter in this i created a structure.

2) the same structure i declare with the same name in bdc report(se38).

The code in the fm is in this way

DATA:

t_cust TYPE zcust_table .(this is the structure name in my fm import tab)

EXPORT t_cust TO MEMORY ID 'TABLE'.

SUBMIT ZBDC_CUSTOMER AND RETURN.

3)

DATA :BEGIN OF zcust OCCURS 100 .

INCLUDE STRUCTURE zcust_table.

DATA:END OF ZCUST.

START-OF-SELECTION.

IMPORT t_cust FROM MEMORY ID 'TABLE'.(Thi is my decalration in se38 bdc program.)

when i executed my fm the value that given in fm is not reaching my table which i declared in bdc program.

Regards,

Madhu.