2007 May 21 11:57 AM
Hi,
I am creating a BAPI FM with the tables parameters with a parameter as
i_ydrseg type MMCR_DRSEG.
This is similar to the type as defined in the FM MRM_INVOICE_READ as
T_DRSEG TYPE MMCR_TDRSEG.
I have declared the MMCR as types pools in the function group TOP include of the new BAPI. But still i get the error as " Type MMCR_DRSEG is unknown " .
How do i create a table parameter of the type as above ?
Pls help with your ideas.
Thanks,
Stock
Hi,
I am creating a BAPI FM with the tables parameters with a parameter as
i_ydrseg type MMCR_DRSEG.
This is similar to the type as defined in the FM MRM_INVOICE_READ as
T_DRSEG TYPE MMCR_TDRSEG.
I have declared the MMCR as types pools in the function group TOP include of the new BAPI. But still i get the error as " Type MMCR_DRSEG is unknown " .
How do i create a table parameter of the type as above ?
Pls help with your ideas.
Thanks,
Stock
2007 May 21 12:01 PM
Hi stock,
1. Make sure u activate the top include before activating the FM.
regards,
amit m.
2007 May 21 12:03 PM
I double-checked the TOP include for it to be Active.
Still the error persists.
How do I resolve ?
Thanks,
Stock
2007 May 21 12:03 PM
I guess this is an activation proble,
activate the TOP INCLUDE first and then activate ur FM
2007 May 21 12:06 PM
Hi,
I double-checked the TOP include for it to be Active.
Still the error persists.
How do I resolve ?
Thanks,
Stock
2007 May 21 12:53 PM
Hi,
Any ideas , i am still not able to break-through.
Thanks,
stock
2007 May 21 12:59 PM
Hi again,
1. just to make sure whether MMCR_DRSEG
is working fine or not,
and also the type pools is working fine in top include or not.
2. do not use the parameter in import/export/tables parameter.
3. Instead, for testing purpose,
4. declare this in the source code of the FM,
and check whehter it is giving error not.
regards,
amit m.
2007 May 21 1:06 PM
Hi Amit,
I checked in the source code and it accepts the variable created. But does not allow to declare in the Tables parameters by giving the message.
Thanks,
Stock
2007 May 21 1:18 PM
Hi again,
1. I tried the same thing.
2. Instead of BAPI (RFC enabled fm),
if we give this as normal FM,
then it will work fine.
3. But since this a RFC Enabled, it gives error.
4. Probably the workaround will be to create
a similar structure in se11 and then use here.
regards,
amit m.
2007 May 21 1:55 PM
Hi Amit,
Yes you are right. I am trying to create the structure with the MMCR fields from the type-pools but it has duplicate entries of the some fields from different structures and gives error while creation.
Is there any way to create a type in DDIC from type-pools.
One question is givng rise to another one.
Kinldy provide some inputs.
Thanks,
stock
2007 May 21 1:57 PM
Hi again,
1. No i don't think there is any automatic way for
directly creating a structure
from type-pools definition.
2. We have to create manually only.
regards,
amit m.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |