Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9190

Issue in creating vendor (enhanced Screen with custom tabs :Inbound IDOC)

$
0
0

Hi Experts,

I have a  scenario in which I want to create/update Vendor master in SAP. The vendor has to be updated by an inbound IDOC from external system.

The issue over here is that the vendor master is enhanced and custom tabs  are added to the standard screens and the fields stored in seperate Z tables other than standard (LFA1 , LFB1..)

I have tried various methods to achieve this

 

Method 1

To handle the Z fields I have enhanced the BASIC type CREMAS05 to include zsegments. I decoded the IDOC. Then I created a  BDC to create/update vendor master. I was able to successfully create vendor master but with BDC when standard configuration is changed the visibility of some field are changed. So, the BDC fails in some scenario. Even if I update my BDC to handle all the scenario. when Std config will change the BDC will fail.


Is there a way to query standard config table, so that I dont have to hard code (basically for account group KTOKK )to call a sceen sequence in BDC...??

 

Method 2

The Standard BAPI    BAPI_VENDOR_CREATE can not be used as it is a Online BAPI.

 

Method 3

The standard FM VENDOR_INSERT  is not recommended as it does not return standard messages if FM fails. I have to populate the IDOC status table with reason of why IDOC failed.

 

METHOD 4

I tried to enhance the standard FM associated with the process code CREMAS to accommodate for Z Fields.  I was able to enhance the  CREMAS and fetch data of Z Segments into local tables and also I have written code to modify the Z Tables where standard tables were bieng modified . but when I executed this Inbound IDOC, the IDOC was posted with error message 'FB 111' Transaction XK01 : Ztable(XXX) is not maintained.. I tried to work on this but was unsuccessful

 

Method 5

Class VMD_EI_API method MAINTAIN_BAPI,  I was to successfully create vendor with mandatory fields. But to populate each and every field of the input structure is_master_data is a very cumbersome process as you have to pass each and every field one by one and the structure is very deep

Is there a better way to use this CLASS...?

 

 

When I started working on this , I thought it is  a basic issue and I would definitely find something about this but I am unable to . Please help me with your valuable suggestions.


Viewing all articles
Browse latest Browse all 9190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>