cancel
Showing results for 
Search instead for 
Did you mean: 

Manage "Additional data B" in VA01 and BAPI_SALESORDER_SIMULATE

Former Member
0 Kudos

Hi all ,

I'm implementing a new field in VA01 custom screen named "Additional data B" in this field in the user exit "userexit_pricing_prepare_tkomk(sapmv45a)" a value in table KOMK .

This works well , but now i have to pass this custom value to BAPI_SALESORDER_SIMULATE , but i can't find any userexit or Extensionin custom Structure for make it working equal than VA01 .

Any Idea ? Dario

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Use the structure EXTENSIONIN in the bapi to pass the field and values.

Former Member
0 Kudos

Hi , i've read some OSS Notes about it but it doesn't work

This is my situation :

I have added a field into VBAK named ZZTEST , i have also added this field into customable screen of VA01 in section "ADDITIONAL DATA B" . In transaction VA01 , VA02 , On a user Exit i test this field and make some istructions .

So i have placed some breakpoint , in this userexit and i've seen by running BAPI_SALESORDER_SIMULATE that the process step in it .

So , i have tried to pass by BAPIREX structure this custom field in this method :

SD_BAPIREX-STRUCTURE = "BAPE_VBAK".

SD_BAPIPAREX-VALUEPART1 = "TEST".

APPEND SD_BAPIPAREX.

I' have edited structure "BAPE_VBAK" adding the custom field , but it doesen't work , when i launch the bapi and it pass in the user exit , the value VBAK-ZZTEST is not valorized . . .

I've check the process by debugging BAPI , and i have tried to modify some other structure , but i have no good results . . . HELP !

Former Member
0 Kudos

Hi all , i have solved my problem :

I have edited this structure :

BAPE_VBAK adding an include that contain my custom field ZZTEST

BAPE_VBAKX adding an include that contain a flag of CHAR1 for my custom field ZZTEST

So , i have filled the EXTENSIONIN structure in this method :

*********************************

SD_BAPIPAREX-STRUCTURE = 'BAPE_VBAK'.

SD_BAPIPAREX-VALUEPART1+10 = MTS.

APPEND SD_BAPIPAREX.

SD_BAPIPAREX-STRUCTURE = 'BAPE_VBAKX'.

SD_BAPIPAREX-VALUEPART1+10 = 'X'.

APPEND SD_BAPIPAREX.

*************************************

Dario

oddleif_rotmo
Explorer
0 Kudos

Hello, hello.

It is very important that your VBAKKOZX append have the same fieldname as your VBAK extension ZZ fields !!

----


-VBAK extension for VBAK-ZZTYPE and VBAK-ZZSTATUS -

- (count field length in BAPE_VBAK) -

----


clear: extensionin.

extensionin-structure = 'BAPE_VBAK'.

extensionin-valuepart1(10) = quotation_doc.

extensionin-valuepart1+10(4) = change_header-quot_status.

extensionin-valuepart1+14(4) = change_header-quot_type.

APPEND extensionin.

clear: extensionin.

extensionin-structure = 'BAPE_VBAKX'.

extensionin-valuepart1(10) = quotation_doc.

extensionin-valuepart1+10(1) = 'X'.

extensionin-valuepart1+11(1) = 'X'.

APPEND extensionin.

Erik

Edited by: Erik Hoven on May 22, 2008 9:17 AM

Former Member
0 Kudos

Hi,

I am facing similar problem.

I have passed the data to extension table of BAPI correctly but still it doesn't consider the custom field of Additional Data B.

Is there anything else to do except passing the extension table?

Need help.

Regards,

Arpit

Answers (0)