cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create Follow-on RFx Error

0 Likes
836

Hello SRM-friends!

1) I have a problem: when I create Follow-on RFx I do some cheks in BADI BBP_DOC_CHECK_BADI. I add error message (type 'E'), when new RFx create ( IV_MODE = 'C' IV_PARK = ' ' IV_SAVE = ' ' ), but the follow-on RFx is still created and my error message display in log before message about succesfull creation new RFx.

Only when I add message type 'A' process is stopped.

Why my 'E'-message doesn't stop the process?

2) For my checks I need to now parent RFx. I try to use BAPI BBP_PD_BID_GETDETAIL, but on creation step only e_header, e_item and e_partner tables are filled. How I can get parent RFx in BADI method?

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

Hi Ivan

Check this piece of code

READ TABLE lt_head_rel INTO ls_head_rel WITH KEY objtype_a = 'BUS2200' 

It should show you the corresponding GUID and then you nay have to call the same FM again ..

with this new GUID

And yes IV_mode = C is only once .. just when the screen is loaded .. there is some code issue and coz of that the message is not poulated to the et_message table..

Just remove all conditions related to IV_mode and then try again .. it would work ..!

Regards

Vinita

0 Likes

1) I stop on variant with message type 'A', because doing checks after create new RFx is not good idea.

2) lt_head_rel is empty, when BADI in mode = 'C'. Maybe you know, how I can get relations before new RFx is save in DB?

Former Member
0 Likes

Hi Ivan

i am not clear with your query on the first point ..

Checks are done at all stages and has not dependency if you say IV_mode is A or C etc ..

If there is an error message the doc would not be created ..

So there is no harm in deleting that condition is what I understand ..

For the 2nd issue try using below Import paramter when you are coding .. 

i_with_itemdata        = 'X'

Regards

Vinita

0 Likes

1) I do my checks only when I create Follow-on RFx (when IV_MODE = 'C') and I don't need to do it in another modes (in update-mode, in check-mode, etc.).

2) I do it and the table e_item is full. But the table e_header_rel is empty

Former Member
0 Likes

hey Ivan

Ok maybe then I am not able to understand ..

you want the error message to show up but its not showing in the create mode .. the reason could be .. that the mode C is only there the first time the screen loads .. if you change anything in the screen [during the creation process] it will change the IV_mode to U and hence I was asking you not to consider it .as an option ..

For the second issue can you try the below fields at the item level E_ITEM

PRODUCT_SRC_SYS

SRC_OBJECT_TYPE

SRC_GUID                        >> This one ?

OR

GUID

PARENT  >>> THIS ONE ?

Regards

VInita

0 Likes

1) Screen doesn't appear, when we create follow-on RFx, only successful message. I want to do this check in create mode and don't want in update mode, because we can have another different situation with the same update mode (when we update only some information in another RFx etc).

2) I checked it. This is wrong fields.

Former Member
0 Likes

Hi Ivan

So what I understand is that you want the message to appear only when the user is creating the RFX but if the existing  RFx is being changed by clicking on edit it should not be giving the message ..

So for this try to do this .. PUt a select condition on Table CRMD_orderadm_h based on the header_guid of the RFx if sy-subrc EQ  0 then the BID already exists and then skip your check

and if SY-SUBRC NE 0 it measn the bid does not exist and you can keep your check ...

You may also have to check for a bid in saved status separately for which select from table crm_jest ..

For the field maybe this can help ..

Let me know if this helps ..
Regards

Vinita

Former Member
0 Likes

Hi Ivan

Not very clear on your query but I will try if I can help ..

If you pass an error message in DOC_CHECK it will stop check if the ET_message is filled with your error message or not in debug .. ?

2. In that FM there is something called as E_version with date and time .. you must select the latest one and then try to call the function module again

I am not sure what you mean by Parent RFX ..it should be the parent only which you see when you pass object id = bid number in this FM

Please specify more if you need further help !!

Regards

Vinita

0 Likes

1) BBP_DOC_CHECK_BADI calls several times with different parameters IV_MODE, IV_PARK and IV_DAVE. I add error message (msgty = 'E') to ET_MESSAGES, when  IV_MODE = 'C' IV_PARK = ' ' IV_SAVE = ' ', but system doesn't pay attention on this message and continues to create follow-on RFx.

But, when I add message with msgty = 'A', creation process stops and I see popup message in WEB-browser.

Why system doesn't pay on msgty = 'E', only on msgty = 'A'.

2) I create follow-on RFx from another RFx ("parent RFx"). Right? I see guid of new (follow-on) RFx in BADI and I don't now guid of "parent RFx". How I can get guid of "parent RFx"?