cancel
Showing results for 
Search instead for 
Did you mean: 

Validation before posting an idoc

Former Member
0 Kudos

Hello Friends,

I need to post an Orders Idoc into SAP System via XI, but before I post an idoc into R/3 is there any ways to validate some of the fields like customer number,etc.

Please let me how to validate this in XI.

Thanks in advance

Regards,

James

Accepted Solutions (1)

Accepted Solutions (1)

dharamveer_gaur2
Active Contributor
0 Kudos

Hi

use this thread

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

use lookup function.

These are few example of

DB lookup - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler

SAP XI Lookup API: the Killer -

RFC Lookup.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1...

regards,

Sarvesh

Former Member
0 Kudos

U can validate in mapping itself.

explain in detail wat u wanted to validate

chirag

Former Member
0 Kudos

Hi Chirag,

!. I need to check for customer number in the master data if this customer exists in R/3?

2. also if i get an order then i need to check if there are any other other orders from the same customer in r/3 which are due for due for delivery to the same customer and if so then i need to append the new PO items into the old Open PO.

Regards,

James

Former Member
0 Kudos

As I said before, for your requirement RFC Lookup will be best option. You need to just write the lookup code inside an UDF.

See the RFC lookup for more detail and how to use from my privous reply.

Regards,

Sarvesh

Former Member
0 Kudos

Hi,

U have to use the lookup.

1) pass the customer no to R3 system as input to function module.

2) IN function module check whether that customer no present or not?

3) Based on that u send a result back to Xi and go ahead.

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a03e7b02-eea4-2910-089f-8214c6d1...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70d90a91-3cf4-2a10-d189-bfd37d9c...

chirag