2012 Jan 04 9:45 AM
Hello Gurus,
I am facing a strange problem while checking for incompletion log in sales order.
I appended the table VBAP with a custom field and configured it as well.
It works fine if there is any other entry in the incompletion log but doesn't works all alone.
I think SAP is not able to recognize the appended fields.
Is there anyway I could get through this?
Thanks in Advance,
Sumit .
2012 Jan 05 2:28 PM
Hi,
Have you added the field to the PAI section of the relevant subscreen in VA01? You need to add it to the chain, which triggers module VBAP_FULLEN. Otherwise the processing of validations (including incompletion log) will not be triggered for you field.
I.e. if you have added the field to the sales order item overview screen, you should make following adjustment to PAI of screen SAPMV45A 4900:
*----------------------------------------------------------------------*
* Füllen der Position, falls eine Eingabe in der Fußzeile war *
*----------------------------------------------------------------------*
CHAIN.
FIELD:
VBAP-POSNR,
*{ INSERT DE1K900014 1
*
VBAP-YYFGALOC, "custom field name
*} INSERT
*{ INSERT DE1K902956 4
VBAP-YYXDOCK,
*} INSERT
VBAP-UEPOS,
VBAP-WERKS,
VBAP-LGORT,
VBAP-MATNR,
VBAP-VRKME,
RV45A-KWMENG,
VBAPD-MATNR_G,
RV45A-MABNR,
VBAP-KDMAT,
VBAP-ARKTX,
VBAPD-ARKTX_G,
VBAP-FAKSP,
VBAP-CHARG,
VBAP-PSTYV,
* IS2ERP Media enhancement
vbap-idcodetype, "ISBN-Nr.
vbap-ismidentcode, "ISBN-Nr.
* Advanced Returns Enh.
VBAP-ZMENG,
VBAP-ZIEME,
VBAP-IUID_RELEVANT, "EHP3
VBAP-POSEX,
VBAP-UNTTO,
VBAP-UEBTO.
MODULE VBAP_FUELLEN ON CHAIN-REQUEST.
ENDCHAIN.
Regards,
Marcin
2012 Jan 05 2:28 PM
Hi,
Have you added the field to the PAI section of the relevant subscreen in VA01? You need to add it to the chain, which triggers module VBAP_FULLEN. Otherwise the processing of validations (including incompletion log) will not be triggered for you field.
I.e. if you have added the field to the sales order item overview screen, you should make following adjustment to PAI of screen SAPMV45A 4900:
*----------------------------------------------------------------------*
* Füllen der Position, falls eine Eingabe in der Fußzeile war *
*----------------------------------------------------------------------*
CHAIN.
FIELD:
VBAP-POSNR,
*{ INSERT DE1K900014 1
*
VBAP-YYFGALOC, "custom field name
*} INSERT
*{ INSERT DE1K902956 4
VBAP-YYXDOCK,
*} INSERT
VBAP-UEPOS,
VBAP-WERKS,
VBAP-LGORT,
VBAP-MATNR,
VBAP-VRKME,
RV45A-KWMENG,
VBAPD-MATNR_G,
RV45A-MABNR,
VBAP-KDMAT,
VBAP-ARKTX,
VBAPD-ARKTX_G,
VBAP-FAKSP,
VBAP-CHARG,
VBAP-PSTYV,
* IS2ERP Media enhancement
vbap-idcodetype, "ISBN-Nr.
vbap-ismidentcode, "ISBN-Nr.
* Advanced Returns Enh.
VBAP-ZMENG,
VBAP-ZIEME,
VBAP-IUID_RELEVANT, "EHP3
VBAP-POSEX,
VBAP-UNTTO,
VBAP-UEBTO.
MODULE VBAP_FUELLEN ON CHAIN-REQUEST.
ENDCHAIN.
Regards,
Marcin
2012 Jan 05 4:22 PM
HI Marcin,
Thanks for your reply.
I have added the custom field in Additional data A tab - screen 4459
I have inserted two new modules in PBO and PAI.
Here there is no MODULE VBAP_FUELLEN.
So I am not able to make out where to exactly code.
Please advice.
Thanks,
Sumit
2012 Jan 07 11:34 AM
Hi Sumit,
You need to create your own PAI module, which will execute similar code as in the VBAP_FULLEN (for new item) and VBAP_BEARBEITEN (for changed items) modules. I believe you can call the modules also from the screens you've mentioned. You need at least to execute the form VBAP_BEARBEITEN, in which the system executes the incompletion log check.
If you do not run the standard modules, the system will also not execute the user-exit USEREXIT_CHECK_VBAP (include MV45AFZB) mentioned in the above post when you field is changed.
Regards,
Marcin
2012 Jan 07 12:05 PM
HI Marcin,
I have created an ALV on the additional data A tab.
I check for the some of the fields in ALV and update an indicator in table VBAP.
I am not using this indicator on the screen.
I want to use this field to update the incompletion log.
Please advice.
Thanks,
Sumit.
2012 Jan 07 2:36 PM
Hello All,
I was able to solve the problem.
What I did is I made an invisible field which was updating in VBAP.
And moved my PAI module before the modules that were updating VBAP as suggested
by Marcin.
Thanks to All,
Sumit.
2012 Jan 05 5:37 PM
Hi Sumit,
I appended the table VBAP with a custom field and configured it as well
It means you are filling this field and if it is an empty you need to show in in-completion log?
It works fine if there is any other entry in the incompletion log but doesn't works all alone
Can you explain this.
I think SAP is not able to recognize the appended fields
As i know through configuration itself you can keep in in-completion log but custom fields wont display in list.You need to handle with custom code.Check in MV4AFZZ
Regards,
Madhu.