cancel
Showing results for 
Search instead for 
Did you mean: 

Remove a field (or segment) from a generated Message type for a custom (copied) BAPI-ALE interface

Kirubakar
Participant
0 Kudos
534

Hey All,

I have a requirement wherein I don't need to send the Tax Jurisdiction field in the ADRMAS IDOC from one SAP system to another SAP system.

Business Process:

I am sending CREMAS IDOC to send the Vendor Master data from one SAP system to another SAP system. I have also added the AddressOrg BAPI to the distribution modal so that the Vendor Address is also sent along with the vendor Master Data.

Now in the receiving system, the Tax jurisdiction Code is not needed and causing an issue.

Tried:

1. I copied BUS4001 Business Object along with the methods

ZHRAddressOrg.SaveReplica

ZHRAddressOrg.FindDetail

ZHRAddressOrg.Update

2. From BDBG tcode, generated custom Message types, IDOC basic type, custom Segment type, etc.

3. Now, when I go to WE30, type the IDOC type, and try to edit, it says "IDOC type is generated, only display possible"

How can I change/edit the segments in a generated IDOC type ?

Sandra_Rossi
Active Contributor

So, your question is how to set field TAXJURCODE of segment E1BPAD1VL of message type ADRMAS to blank? I don't understand why you want to "remove" it? Can't you define a conversion rule to transmit blank? (BD62, BD79, BD55)

Kirubakar
Participant
0 Kudos

That is wonderful. I tried sending a blank value using the conversion rules but apparently the client is doing some other type of validation in the system and it was erroring out. They didn't want to send the field to ECP. So instead I put in '#' and removed that field from the IDOC. Thank you for the suggestion. Worked like a charm!

Accepted Solutions (0)

Answers (0)