cancel
Showing results for 
Search instead for 
Did you mean: 

Flags in IDOC for change IDOCs

former_member187447
Participant
0 Kudos

Hi,

If we have an order or delivery created using the standard create IDOC then how does the changes happen using the another standard change IDOC.

The problem i am facing is as follows:

we have a flat file which maps to create IDOC,

The same flat file maps to change IDOC. the problem is change IDOC has flags which need to be set, and only then the changes happen for the corresponding fields, as we dont know what fields will have changed values XI wont be able to set these flags.

Note: create and change routing conditions are properly identified.

Is there any better solution in XI side or should it be done from the sender side where in they have to set the flags in the sending structure.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This configuration needs to be done on ECC side.

Lets say you have already received Purchase Order from one of your customer.this will be posted to ECC as ORDERS05 IDOC.

after some days,the customer wants to make come changes in his order,so he will send you changed order and this will be posted as ORDCHG IDOC,then its upto the configuration in ECC to see if these changes can be reflected in original orders or not.

Thanks

Aamir

former_member187447
Participant
0 Kudos

So you mean to say that ECC side has to set the flags. The problem flat file is being used at the sender side. So in that case they need to update the flat file and have extra fields for setting the flags. so is that the only way.

Former Member
0 Kudos

all business logic is done on ECC side.

lets say the customer ordered for 100 Pounds of certain product,once this order reaches ECC,the End Users will do a Inventory check to see if they have 100 pounds of that product,if they do,they will send a acknowledgment to the customer saying that their order has been received and they will deliver it within 1 week.

Now 3 days after the original order was placed,if the customer changes the qunatity from 100 Pounds to 200 pounds,then the End user will again check his inventory to see if he has 200 Pounds of that product of not,similarly he will check other constraints too like shipping date,plant,shipping point etc.

All these things will he handled at ECC level only.

XI will simply post ORDERS05 first and after 3 days it will post ORDCHG,then its upto the ECC people to see if they can change the order or can't

Thats a very simple process in a very crude form.i took this example just to tell you that XI is not playing major role in the whole process.

Thanks

Aamir

former_member187447
Participant
0 Kudos

Yeah you are right about everything, but the problem here is the changes that come in flat file have all the fields populated irrescpective of whether a field is actually having the change or not.

May be i shouldnt have used the word flag but should have used a ctrl field

and the idoc is such that we have a two segment

lets say we item segment which has qty, vloume , material.....

and there is control item segment which has ctrl qty , ctrl volume, ctrl material.....

so now the case is qty field can be updated if ctrl qty has X in it. its true also for the rest of the fields.

Now the problem is the flat file cant send these X in the ctrl fields. and XI cant put X in all the ctrl fields as if we do it that way its not updating the actual updated fields

Former Member
0 Kudos

Kalyan,

Once when you send the idoc either create or change ask the abaper or yourself to write the code before posting the idoc (here you can do all the business logic).

Regards,

---Satish

Former Member
0 Kudos

Kalyan,

Seems like you are using a IDOC which has a ALE BAPI running behind...because the two segemts you are talking about and having the control segment set to 'X'...is like a BAPI...if thats the case you can write a UDF to do that...let me know if you are using that standard background BAPI to update the change like a function module doing that..

Thanks,

Srini

former_member187447
Participant
0 Kudos

Hi Srinivas,

This is what we are testing now to see if we can customize the BAPI that processes the IDOC.