on 01-20-2010 4:40 PM
Hello All ,
Can you please provide me any pointers for the below mentioned issues.
We have added one custom field in the PO header level. The same field will be available in the search screen for the process po transaction where we have this field with different options like u201Csuccessfully processes / incorrectly processed / not processed / blank u2018
Based up on these selected value, search results has to populate.
And this field we are updating it BBP_DOC_CHANGE_BADI (BBP_PO_CHANGE) based up on the entries in the table PPFTTRIGG like the shown the below.
SELECT single STATUS
FROM PPFTTRIGG
INTO V_PO_PRINT_STATUS
WHERE APPLKEY = V_PPFDAPPKEY AND
METYPE = 'PRN'.
Case V_PO_PRINT_STATUS.
when '1'.
es_header-ZZ_PO_PRINTED = 'SUCCESSFUL'.
when '2'.
es_header-ZZ_PO_PRINTED = 'INCORRECT'.
when '3'.
es_header-ZZ_PO_PRINTED = 'NOT'.
when ' '.
es_header-ZZ_PO_PRINTED = ' '..
endcase .
Unfortunately these table entries are getting populated once we process the output of the PO. When the doc_change_badi getting triggered system is not finding any entries in the table so our custom field keeping status as a blank.
Even though PO got processed, itu2019s keeping blank status. and its results search are populating wrongly . To update the correct status basically we need to process the output 2 times or we need to some change so that BBP_DOC_CHANGE_BADI gets triggered.
Is there any way, where we can capture this status . Or we can get it populated custom status in PO.
ans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ans
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi.
If you want the custom field to be filled (irrespectuve of whether the PO was printed or not)then you need to put the logic in the BADI code after your select stmt assigning a value(may be OUTPUT NOT YET PROCESSED/TRIGGERED) in case the PO output is not triggered!
P.S. If you are working on SRM 5.0,the possible values for the field "STATUS" are :
0 Not processed
1 Successfully processed
2 Incorrectly processed
BR,
Deepti.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.